From cab9cf01ce1d83b61c30d2283556cea12e492e5b Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 28 Apr 2009 22:03:26 +0000 Subject: [PATCH] Make this testcase slightly less trivial, so that it doesn't fail if indvars happens to optimize away the unused primary induction variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70333 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll b/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll index da22cf2e516..d70e6049797 100644 --- a/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll +++ b/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll @@ -9,7 +9,8 @@ define i32 @test() { Loop: ; preds = %Loop, %0 %NonIndvar = phi i32 [ 200, %0 ], [ %NonIndvarNext, %Loop ] ; [#uses=1] - %Canonical = phi i32 [ 0, %0 ], [ %CanonicalNext, %Loop ] ; [#uses=1] + %Canonical = phi i32 [ 0, %0 ], [ %CanonicalNext, %Loop ] ; [#uses=2] + store i32 %Canonical, i32* null %NonIndvarNext = sdiv i32 %NonIndvar, 2 ; [#uses=1] %CanonicalNext = add i32 %Canonical, 1 ; [#uses=1] br label %Loop