diff options
Diffstat (limited to 'test/Transforms/SimplifyCFG/HoistCode.ll')
-rw-r--r-- | test/Transforms/SimplifyCFG/HoistCode.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/HoistCode.ll b/test/Transforms/SimplifyCFG/HoistCode.ll new file mode 100644 index 0000000..b817477 --- /dev/null +++ b/test/Transforms/SimplifyCFG/HoistCode.ll @@ -0,0 +1,11 @@ +; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep br + +void %foo(bool %C, int* %P) { + br bool %C, label %T, label %F +T: + store int 7, int* %P + ret void +F: + store int 7, int* %P + ret void +} |