diff options
Diffstat (limited to 'test/Transforms/SimplifyCFG/basictest.ll')
-rw-r--r-- | test/Transforms/SimplifyCFG/basictest.ll | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/basictest.ll b/test/Transforms/SimplifyCFG/basictest.ll new file mode 100644 index 0000000..18fa897 --- /dev/null +++ b/test/Transforms/SimplifyCFG/basictest.ll @@ -0,0 +1,24 @@ +; Test CFG simplify removal of branch instructions... +; +; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep br + + +void "test1"() { + br label %BB1 +BB1: + ret void +} + +void "test2"() { + ret void +BB1: + ret void +} + +void "test3"(bool %T) { + br bool %T, label %BB1, label %BB1 +BB1: + ret void +} + + |