Generalize test case to handle multiple indvars modes.
authorAndrew Trick <atrick@apple.com>
Tue, 13 Sep 2011 03:17:25 +0000 (03:17 +0000)
committerAndrew Trick <atrick@apple.com>
Tue, 13 Sep 2011 03:17:25 +0000 (03:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139578 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/LoopSimplify/single-backedge.ll

index f9567f124291ebeea035427ec6f3997571bc6623..aedd6f23091c92d01ab8f3593b982521b7902d8b 100644 (file)
@@ -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