summaryrefslogtreecommitdiff
path: root/compiler/optimizing/induction_var_range.cc
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2024-07-16 16:22:43 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2024-07-16 16:22:43 +0000
commit7c2ea09a5c444fe4d97b5688a2ad8449def2d9fc (patch)
treee9c78acafeae55622dccb41dd9aed8a321907fce /compiler/optimizing/induction_var_range.cc
parent7dde89626a56bdff2ed85af6852f977c324fe880 (diff)
parent91c9502fdf437fce5596631e50db5e70c034312a (diff)
Update InductionVarRange::Replace to match more cases am: 91c9502fdf
Original change: https://android-review.googlesource.com/c/platform/art/+/3176219 Change-Id: I66aa9766a3eb5fc3441bc1785d3f7b0e18261571 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'compiler/optimizing/induction_var_range.cc')
-rw-r--r--compiler/optimizing/induction_var_range.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/induction_var_range.cc b/compiler/optimizing/induction_var_range.cc
index 767a149636..2f5a22ec0e 100644
--- a/compiler/optimizing/induction_var_range.cc
+++ b/compiler/optimizing/induction_var_range.cc
@@ -368,8 +368,8 @@ void InductionVarRange::Replace(HInstruction* instruction,
for (HLoopInformation* lp = instruction->GetBlock()->GetLoopInformation(); // closest enveloping loop
lp != nullptr;
lp = lp->GetPreHeader()->GetLoopInformation()) {
- // Update instruction's information.
- ReplaceInduction(induction_analysis_->LookupInfo(lp, instruction), fetch, replacement);
+ // Update loop's InductionInfo about fetch.
+ ReplaceInduction(induction_analysis_->LookupInfo(lp, fetch), fetch, replacement);
// Update loop's trip-count information.
ReplaceInduction(induction_analysis_->LookupInfo(lp, GetLoopControl(lp)), fetch, replacement);
}