diff options
| author | Dan Gohman <gohman@apple.com> | 2009-04-28 22:03:26 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-04-28 22:03:26 +0000 |
| commit | 2625f2cb8037982a3ee1319faeed6a218e72473a (patch) | |
| tree | 5887cb41c03678aeab6e6365bc58e3f8f9f4be19 /llvm/test/Transforms/IndVarSimplify | |
| parent | ce1a9c5a6b2a8b5fed339b94c0d74934936c635e (diff) | |
| download | bcm5719-llvm-2625f2cb8037982a3ee1319faeed6a218e72473a.tar.gz bcm5719-llvm-2625f2cb8037982a3ee1319faeed6a218e72473a.zip | |
Make this testcase slightly less trivial, so that it doesn't fail
if indvars happens to optimize away the unused primary induction
variable.
llvm-svn: 70333
Diffstat (limited to 'llvm/test/Transforms/IndVarSimplify')
| -rw-r--r-- | llvm/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll b/llvm/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll index da22cf2e516..d70e6049797 100644 --- a/llvm/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll +++ b/llvm/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 ] ; <i32> [#uses=1] - %Canonical = phi i32 [ 0, %0 ], [ %CanonicalNext, %Loop ] ; <i32> [#uses=1] + %Canonical = phi i32 [ 0, %0 ], [ %CanonicalNext, %Loop ] ; <i32> [#uses=2] + store i32 %Canonical, i32* null %NonIndvarNext = sdiv i32 %NonIndvar, 2 ; <i32> [#uses=1] %CanonicalNext = add i32 %Canonical, 1 ; <i32> [#uses=1] br label %Loop |

