summaryrefslogtreecommitdiff
path: root/compiler/optimizing/loop_optimization.h
diff options
context:
space:
mode:
authorAart Bik <ajcbik@google.com>2016-12-06 10:05:30 -0800
committerAart Bik <ajcbik@google.com>2016-12-09 08:42:18 -0800
commitdf7822ecf033cecf48d950f3ae34f7043c8df738 (patch)
treef392a69377e1e281bcd85d811b656c6d14280ab4 /compiler/optimizing/loop_optimization.h
parent6746874b84a44ab8dff18457eec546a1ebb22e93 (diff)
Added polynomial induction variables analysis. With tests.
Rationale: Information on polynomial sequences is nice to further enhance BCE and last-value assignment. In this case, this CL enables more loop optimizations for benchpress' Sum (80 x speedup). Also changed rem-based geometric induction to wrap-around induction. Test: test-art-host Change-Id: Ie4d2659edefb814edda2c971c1f70ba400c31111
Diffstat (limited to 'compiler/optimizing/loop_optimization.h')
-rw-r--r--compiler/optimizing/loop_optimization.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/optimizing/loop_optimization.h b/compiler/optimizing/loop_optimization.h
index 3391bef4e9..0f05b24c37 100644
--- a/compiler/optimizing/loop_optimization.h
+++ b/compiler/optimizing/loop_optimization.h
@@ -95,6 +95,9 @@ class HLoopOptimization : public HOptimization {
// when the induction of inner loops has changed.
int32_t induction_simplication_count_;
+ // Flag that tracks if any simplifications have occurred.
+ bool simplified_;
+
friend class LoopOptimizationTest;
DISALLOW_COPY_AND_ASSIGN(HLoopOptimization);