aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-07-20 02:14:37 +0000
committerAndrew Trick <atrick@apple.com>2011-07-20 02:14:37 +0000
commit9e92152f77f25f58223232f0e20631c11b432af4 (patch)
tree3ceb1fbe709a6d890926f867976f5b2c42c9d681 /test/Transforms
parentf22d95749a876975329f6de3a233031171af26a6 (diff)
downloadexternal_llvm-9e92152f77f25f58223232f0e20631c11b432af4.zip
external_llvm-9e92152f77f25f58223232f0e20631c11b432af4.tar.gz
external_llvm-9e92152f77f25f58223232f0e20631c11b432af4.tar.bz2
indvars test case for r135558.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135559 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/IndVarSimplify/no-iv-rewrite.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/IndVarSimplify/no-iv-rewrite.ll b/test/Transforms/IndVarSimplify/no-iv-rewrite.ll
index bb951c6..a6073c2 100644
--- a/test/Transforms/IndVarSimplify/no-iv-rewrite.ll
+++ b/test/Transforms/IndVarSimplify/no-iv-rewrite.ll
@@ -330,9 +330,16 @@ entry:
%first = getelementptr inbounds %structIF* %base, i64 0, i32 0
br label %loop
+; CHECK: loop:
+; CHECK: phi %structIF*
+; CHECK: phi i32*
+; CHECK: getelementptr inbounds
+; CHECK: getelementptr inbounds
+; CHECK: exit:
loop:
%ptr.iv = phi %structIF* [ %ptr.inc, %latch ], [ %base, %entry ]
%next = phi i32* [ %next.inc, %latch ], [ %first, %entry ]
+ store i32 4, i32* %next
br i1 undef, label %latch, label %exit
latch: ; preds = %for.inc50.i