diff options
author | Aart Bik <ajcbik@google.com> | 2016-11-03 17:51:43 -0700 |
---|---|---|
committer | Aart Bik <ajcbik@google.com> | 2016-11-04 08:14:23 -0700 |
commit | 807868eac75a39e79ee6309ed4cbe038407efa29 (patch) | |
tree | 74d9953120599bde842895ab4e7ed33fefb0fa13 /compiler/optimizing/loop_optimization.h | |
parent | 3387b2a9e6ca4e7015c4182eee2f70a746972ca2 (diff) |
Account for early exit loop.
Rationale:
last value computation is obviously only right if
the loop does not have early exits; only needed
if cycle leaks to outside loop in any way.
Bug:32633772
Test: 623-checker-loop-regressions
Change-Id: Id60beca4704491cff611ad12a24bfc63c09d32c3
Diffstat (limited to 'compiler/optimizing/loop_optimization.h')
-rw-r--r-- | compiler/optimizing/loop_optimization.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/optimizing/loop_optimization.h b/compiler/optimizing/loop_optimization.h index e18d17531e..3391bef4e9 100644 --- a/compiler/optimizing/loop_optimization.h +++ b/compiler/optimizing/loop_optimization.h @@ -72,9 +72,7 @@ class HLoopOptimization : public HOptimization { HInstruction* instruction, /*out*/ int32_t* use_count); void ReplaceAllUses(HInstruction* instruction, HInstruction* replacement); - bool TryReplaceWithLastValue(HInstruction* instruction, - int32_t use_count, - HBasicBlock* block); + bool TryReplaceWithLastValue(HInstruction* instruction, HBasicBlock* block); // Range information based on prior induction variable analysis. InductionVarRange induction_range_; |