summaryrefslogtreecommitdiff
path: root/test/Transforms
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-09-13 03:17:25 +0000
committerAndrew Trick <atrick@apple.com>2011-09-13 03:17:25 +0000
commit603fff39688a4e3a90f62031d523f2e0f9b05722 (patch)
tree7e60e12ced5984b771642d79ab5e6793d132f3cb /test/Transforms
parent3c8015aa6c4793a398d1ff0df1752b6d3b41f8e0 (diff)
downloadllvm-603fff39688a4e3a90f62031d523f2e0f9b05722.tar.gz
llvm-603fff39688a4e3a90f62031d523f2e0f9b05722.tar.bz2
llvm-603fff39688a4e3a90f62031d523f2e0f9b05722.tar.xz
Generalize test case to handle multiple indvars modes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139578 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/LoopSimplify/single-backedge.ll9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/Transforms/LoopSimplify/single-backedge.ll b/test/Transforms/LoopSimplify/single-backedge.ll
index f9567f1242..aedd6f2309 100644
--- a/test/Transforms/LoopSimplify/single-backedge.ll
+++ b/test/Transforms/LoopSimplify/single-backedge.ll
@@ -1,8 +1,11 @@
-; The loop canonicalization pass should guarantee that there is one backedge
-; for all loops. This allows the -indvars pass to recognize the %IV
+; The loop canonicalization pass should guarantee that there is one backedge
+; for all loops. This allows the -indvars pass to recognize the %IV
; induction variable in this testcase.
-; RUN: opt < %s -indvars -S | grep indvar
+; RUN: opt < %s -indvars -S | FileCheck %s
+; CHECK: Loop.backedge:
+; CHECK-NOT: br
+; CHECK: br label %Loop
define i32 @test(i1 %C) {
; <label>:0