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