From fdba2cb5512fe613361e128f4d2ff858937aff8f Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 2 Dec 2006 16:25:20 +0000 Subject: [PATCH] Prevent a GEP from getting upgraded to avoid resulting test failure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32123 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/LoopStrengthReduce/related_indvars.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Transforms/LoopStrengthReduce/related_indvars.ll b/test/Transforms/LoopStrengthReduce/related_indvars.ll index 783433663b0..533279b9eb1 100644 --- a/test/Transforms/LoopStrengthReduce/related_indvars.ll +++ b/test/Transforms/LoopStrengthReduce/related_indvars.ll @@ -15,7 +15,7 @@ entry: no_exit: ; preds = %no_exit, %entry %indvar = phi uint [ 0, %entry ], [ %indvar.next, %no_exit ] ; [#uses=3] %D_addr.0.0.rec = cast uint %indvar to int ; [#uses=1] - %D_addr.0.0 = getelementptr double* %D, uint %indvar ; [#uses=1] + %D_addr.0.0 = getelementptr double* %D, int %D_addr.0.0.rec ; [#uses=1] %inc.rec = add int %D_addr.0.0.rec, 1 ; [#uses=1] %inc = getelementptr double* %D, int %inc.rec ; [#uses=1] store double %F, double* %D_addr.0.0 -- 2.34.1