diff options
author | Aart Bik <ajcbik@google.com> | 2016-10-14 09:49:42 -0700 |
---|---|---|
committer | Aart Bik <ajcbik@google.com> | 2016-10-18 09:02:47 -0700 |
commit | 9abf894ad0e5a6a1594ee1fa3924965e25e5f86f (patch) | |
tree | 5080bd832d4f2234897404195b5d9865f950f47c /compiler/optimizing/loop_optimization.h | |
parent | 6e5fa09510c7280168e040382d27dd8b55760d9a (diff) |
Enable last value generation of periodic sequence.
Rationale:
This helps to eliminate more dead induction. For example,
CaffeineLogic when compiled with latest Jack improves with
a 1.3 speedup (2900us -> 2200us) due to eliminating first
loop (second loop can be removed also, but for a later
case). The currently benchmarks.dex has a different construct
for the periodics, however, still to be recognized.
Test: test-art-host
Change-Id: Ia81649a207a2b1f03ead0855436862ed4e4f45e0
Diffstat (limited to 'compiler/optimizing/loop_optimization.h')
-rw-r--r-- | compiler/optimizing/loop_optimization.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/loop_optimization.h b/compiler/optimizing/loop_optimization.h index 9c4b462a1f..4113357035 100644 --- a/compiler/optimizing/loop_optimization.h +++ b/compiler/optimizing/loop_optimization.h @@ -62,7 +62,7 @@ class HLoopOptimization : public HOptimization { void SimplifyInduction(LoopNode* node); void SimplifyBlocks(LoopNode* node); - void RemoveIfEmptyLoop(LoopNode* node); + void RemoveIfEmptyInnerLoop(LoopNode* node); bool IsOnlyUsedAfterLoop(HLoopInformation* loop_info, HInstruction* instruction, |