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 | cab9cf01ce1d83b61c30d2283556cea12e492e5b (patch) | |
tree | 1d8094755cef4ca26f3626102fa973abb9b6d468 /test/Transforms | |
parent | 87d2fe51432bab98bec415c40c4d7bdc2b0a936a (diff) | |
download | external_llvm-cab9cf01ce1d83b61c30d2283556cea12e492e5b.zip external_llvm-cab9cf01ce1d83b61c30d2283556cea12e492e5b.tar.gz external_llvm-cab9cf01ce1d83b61c30d2283556cea12e492e5b.tar.bz2 |
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
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll b/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll index da22cf2..d70e604 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 ] ; <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 |