From e264f62ca09a8f65c87a46d562a4d0f9ec5d457e Mon Sep 17 00:00:00 2001 From: Shih-wei Liao Date: Wed, 10 Feb 2010 11:10:31 -0800 Subject: Check in LLVM r95781. --- test/Transforms/SimplifyCFG/HoistCode.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/Transforms/SimplifyCFG/HoistCode.ll (limited to 'test/Transforms/SimplifyCFG/HoistCode.ll') diff --git a/test/Transforms/SimplifyCFG/HoistCode.ll b/test/Transforms/SimplifyCFG/HoistCode.ll new file mode 100644 index 0000000..9697e56 --- /dev/null +++ b/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 +} -- cgit v1.1