diff options
author | 2016-10-18 13:03:31 -0700 | |
---|---|---|
committer | 2016-10-20 14:14:17 -0700 | |
commit | 639cc8c7bbb7d8c341173bcf24604ccb4328acb8 (patch) | |
tree | ae8181b94ddd145edaff141a2b351478161f1559 /compiler/optimizing/induction_var_analysis.h | |
parent | 3941c882ea7b54772dec36a9a1b33e0b8a7474f7 (diff) |
Improve recognition of select-based period induction.
Rationale:
Similar to the previous CL, this helps to eliminate more dead induction.
Now, CaffeineLogic, when compiled with dx (rather than jack) improves
by a 1.5 speedup (9000us -> 6000us).
Note:
We need to run the simplifier before induction analysis to trigger
the select simplification first. Although a bit of a compile-time hit,
it seems a good idea to run a simplifier here again anyway.
Test: test-art-host
Change-Id: I93b91ca40a4d64385c64393028e8d213f0c904a8
Diffstat (limited to 'compiler/optimizing/induction_var_analysis.h')
-rw-r--r-- | compiler/optimizing/induction_var_analysis.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/optimizing/induction_var_analysis.h b/compiler/optimizing/induction_var_analysis.h index 06aee31b88..d19078248c 100644 --- a/compiler/optimizing/induction_var_analysis.h +++ b/compiler/optimizing/induction_var_analysis.h @@ -177,8 +177,11 @@ class HInductionVarAnalysis : public HOptimization { HInstruction* entry_phi, HInstruction* instruction, HInstruction* x, - HInstruction* y, - bool is_first_call); // possibly swaps x and y to try again + HInstruction* y); + InductionInfo* SolveTest(HLoopInformation* loop, + HInstruction* entry_phi, + HInstruction* instruction, + int64_t oppositive_value); InductionInfo* SolveCnv(HTypeConversion* conversion); // Trip count information. |