From e22445fba0e5747ea787429ac64577a9a62aded3 Mon Sep 17 00:00:00 2001 From: Aart Bik Date: Wed, 3 May 2017 14:29:20 -0700 Subject: Fixed bug due to not updating TC information (with regression test) Bug: 37768917 Test: test-art-target, test-art-host Change-Id: Ia0cd4e0874941a047625448cbb95b7b4733d70d1 --- compiler/optimizing/bounds_check_elimination.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/optimizing/bounds_check_elimination.cc') 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. -- cgit v1.2.3-59-g8ed1b