summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SimplifyCFG/branch-cond-prop.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/branch-cond-prop.ll')
-rw-r--r--llvm/test/Transforms/SimplifyCFG/branch-cond-prop.ll21
1 files changed, 9 insertions, 12 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/branch-cond-prop.ll b/llvm/test/Transforms/SimplifyCFG/branch-cond-prop.ll
index 10270c29fc5..a7cd359689d 100644
--- a/llvm/test/Transforms/SimplifyCFG/branch-cond-prop.ll
+++ b/llvm/test/Transforms/SimplifyCFG/branch-cond-prop.ll
@@ -1,20 +1,17 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep call
+; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep call
-declare void %bar()
+declare void @bar()
-void %test(int %X, int %Y) {
+define void @test(i32 %X, i32 %Y) {
entry:
- %tmp.2 = setlt int %X, %Y ; <bool> [#uses=2]
- br bool %tmp.2, label %shortcirc_next, label %UnifiedReturnBlock
-
+ %tmp.2 = icmp slt i32 %X, %Y ; <i1> [#uses=2]
+ br i1 %tmp.2, label %shortcirc_next, label %UnifiedReturnBlock
shortcirc_next: ; preds = %entry
- br bool %tmp.2, label %UnifiedReturnBlock, label %then
-
+ br i1 %tmp.2, label %UnifiedReturnBlock, label %then
then: ; preds = %shortcirc_next
- call void %bar( )
+ call void @bar( )
+ ret void
+UnifiedReturnBlock: ; preds = %shortcirc_next, %entry
ret void
-
-UnifiedReturnBlock: ; preds = %entry, %shortcirc_next
- ret void
}
OpenPOWER on IntegriCloud