diff --git a/test/Transforms/SimplifyCFG/HoistCode.ll b/test/Transforms/SimplifyCFG/HoistCode.ll new file mode 100644 index 00000000000..db397a7e64d --- /dev/null +++ b/test/Transforms/SimplifyCFG/HoistCode.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | 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 +}