diff options
author | 2016-10-11 19:55:32 +0000 | |
---|---|---|
committer | 2016-10-11 19:55:32 +0000 | |
commit | c1f24b947a4dfe76064db3ae5470a388a67650a8 (patch) | |
tree | 20be99be418433853947bbcab9bd007d8dd115ef /compiler/optimizing/induction_var_range.h | |
parent | 1e0d8ce4e56d47a399ab367b9dcb5b34069a9f27 (diff) | |
parent | 482095d3a03892b76f5b835c9e7ea4bc80638501 (diff) |
Merge "Improved and simplified loop optimizations."
Diffstat (limited to 'compiler/optimizing/induction_var_range.h')
-rw-r--r-- | compiler/optimizing/induction_var_range.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/optimizing/induction_var_range.h b/compiler/optimizing/induction_var_range.h index 63850b34b8..df31e81169 100644 --- a/compiler/optimizing/induction_var_range.h +++ b/compiler/optimizing/induction_var_range.h @@ -131,6 +131,14 @@ class InductionVarRange { */ void Replace(HInstruction* instruction, HInstruction* fetch, HInstruction* replacement); + /** + * Incrementally updates induction information for just the given loop. + */ + void ReVisit(HLoopInformation* loop) { + induction_analysis_->induction_.erase(loop); + induction_analysis_->VisitLoop(loop); + } + private: /* * Enum used in IsConstant() request. |