summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SimplifyCFG/BrUnwind.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/BrUnwind.ll')
-rw-r--r--llvm/test/Transforms/SimplifyCFG/BrUnwind.ll23
1 files changed, 12 insertions, 11 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/BrUnwind.ll b/llvm/test/Transforms/SimplifyCFG/BrUnwind.ll
index 73bd9756c1f..1acdecd5781 100644
--- a/llvm/test/Transforms/SimplifyCFG/BrUnwind.ll
+++ b/llvm/test/Transforms/SimplifyCFG/BrUnwind.ll
@@ -1,14 +1,15 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | \
+; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | \
; RUN: not grep {br label}
-void %test(bool %C) {
- br bool %C, label %A, label %B
-A:
- call void %test(bool %C)
- br label %X
-B:
- call void %test(bool %C)
- br label %X
-X:
- unwind
+define void @test(i1 %C) {
+ br i1 %C, label %A, label %B
+A: ; preds = %0
+ call void @test( i1 %C )
+ br label %X
+B: ; preds = %0
+ call void @test( i1 %C )
+ br label %X
+X: ; preds = %B, %A
+ unwind
}
+
OpenPOWER on IntegriCloud