diff options
| author | 2015-12-09 20:43:06 +0000 | |
|---|---|---|
| committer | 2015-12-09 20:43:06 +0000 | |
| commit | 6ca9f51e2c0f730cc2fb43720f159deb572eb388 (patch) | |
| tree | bad5813c2abd5c3a9c302767290f9b1b9360b707 /compiler/optimizing/nodes.h | |
| parent | 3dafd53ff90fc845c09b7206600ba9ff45e3fcbd (diff) | |
| parent | f1975e432859101bf8e7b0fd33f6052cafb0f9b2 (diff) | |
Merge "Simplify and rename IsLoopInvariant() test."
am: f1975e4328
* commit 'f1975e432859101bf8e7b0fd33f6052cafb0f9b2':
Simplify and rename IsLoopInvariant() test.
Diffstat (limited to 'compiler/optimizing/nodes.h')
| -rw-r--r-- | compiler/optimizing/nodes.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 9d3c88c79e..3e38e9f2a4 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -564,11 +564,8 @@ class HLoopInformation : public ArenaObject<kArenaAllocLoopInfo> { // Note that `other` *must* be populated before entering this function. bool IsIn(const HLoopInformation& other) const; - // Returns true if instruction is not defined within this loop or any loop nested inside - // this loop. If must_dominate is set, only definitions that actually dominate the loop - // header can be invariant. Otherwise, any definition outside the loop, including - // definitions that appear after the loop, is invariant. - bool IsLoopInvariant(HInstruction* instruction, bool must_dominate) const; + // Returns true if instruction is not defined within this loop. + bool IsDefinedOutOfTheLoop(HInstruction* instruction) const; const ArenaBitVector& GetBlocks() const { return blocks_; } |