aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/LCSSA/basictest.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/LCSSA/basictest.ll')
-rw-r--r--test/Transforms/LCSSA/basictest.ll9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/Transforms/LCSSA/basictest.ll b/test/Transforms/LCSSA/basictest.ll
index 4b05ad995305..e13c244d9e0b 100644
--- a/test/Transforms/LCSSA/basictest.ll
+++ b/test/Transforms/LCSSA/basictest.ll
@@ -1,9 +1,8 @@
-; RUN: opt < %s -lcssa -S | \
-; RUN: grep "X3.lcssa = phi i32"
-; RUN: opt < %s -lcssa -S | \
-; RUN: grep "X4 = add i32 3, %X3.lcssa"
+; RUN: opt < %s -lcssa -S | FileCheck %s
+; RUN: opt < %s -passes=lcssa -S | FileCheck %s
define void @lcssa(i1 %S2) {
+; CHECK-LABEL: @lcssa
entry:
br label %loop.interior
loop.interior: ; preds = %post.if, %entry
@@ -18,6 +17,8 @@ post.if: ; preds = %if.false, %if.true
%X3 = phi i32 [ %X1, %if.true ], [ %X2, %if.false ] ; <i32> [#uses=1]
br i1 %S2, label %loop.exit, label %loop.interior
loop.exit: ; preds = %post.if
+; CHECK: %X3.lcssa = phi i32
+; CHECK: %X4 = add i32 3, %X3.lcssa
%X4 = add i32 3, %X3 ; <i32> [#uses=0]
ret void
}