summaryrefslogtreecommitdiff
path: root/compiler/optimizing/bounds_check_elimination.cc
diff options
context:
space:
mode:
author Aart Bik <ajcbik@google.com> 2017-05-03 14:29:20 -0700
committer Aart Bik <ajcbik@google.com> 2017-05-03 14:29:20 -0700
commite22445fba0e5747ea787429ac64577a9a62aded3 (patch)
treed6416b9fff5180af78867d32ea24e3663cf369e2 /compiler/optimizing/bounds_check_elimination.cc
parent7113885fcd983b33ee1e350865d21517d6297843 (diff)
Fixed bug due to not updating TC information
(with regression test) Bug: 37768917 Test: test-art-target, test-art-host Change-Id: Ia0cd4e0874941a047625448cbb95b7b4733d70d1
Diffstat (limited to 'compiler/optimizing/bounds_check_elimination.cc')
-rw-r--r--compiler/optimizing/bounds_check_elimination.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/optimizing/bounds_check_elimination.cc b/compiler/optimizing/bounds_check_elimination.cc
index 476906a768..d38d5f8684 100644
--- a/compiler/optimizing/bounds_check_elimination.cc
+++ b/compiler/optimizing/bounds_check_elimination.cc
@@ -1749,6 +1749,7 @@ class BCEVisitor : public HGraphVisitor {
phi = NewPhi(new_preheader, instruction, type);
}
user->ReplaceInput(phi, index); // Removes the use node from the list.
+ induction_range_.Replace(user, instruction, phi); // update induction
}
}
// Scan all environment uses of an instruction and replace each later use with a phi node.