diff options
| author | 2014-09-22 15:51:11 +0100 | |
|---|---|---|
| committer | 2014-09-23 12:02:03 +0100 | |
| commit | 18efde5017369e005f1e8bcd3bbfb04e85053640 (patch) | |
| tree | dcb8bc8db745f3b8096cde55228730e6c402b2c5 /compiler/optimizing/nodes.h | |
| parent | ef3e89b9281525d6c084136c379346608b44d933 (diff) | |
Fix code generation with materialized conditions.
Change-Id: I8630af3c13fc1950d3fa718d7488407b00898796
Diffstat (limited to 'compiler/optimizing/nodes.h')
| -rw-r--r-- | compiler/optimizing/nodes.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index af173c8087..d3ae7c3614 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -1087,8 +1087,15 @@ class HCondition : public HBinaryOperation { : HBinaryOperation(Primitive::kPrimBoolean, first, second) {} virtual bool IsCommutative() { return true; } + + // For register allocation purposes, returns whether this instruction needs to be + // materialized (that is, not just be in the processor flags). bool NeedsMaterialization() const; + // For code generation purposes, returns whether this instruction is just before + // `if_`, and disregard moves in between. + bool IsBeforeWhenDisregardMoves(HIf* if_) const; + DECLARE_INSTRUCTION(Condition); virtual IfCondition GetCondition() const = 0; |