From 512c2481b19b52b324854e9d744da0e33e402d54 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 2 Apr 2004 18:12:49 +0000 Subject: [PATCH] New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12616 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/SimplifyCFG/return-merge.ll | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/Transforms/SimplifyCFG/return-merge.ll diff --git a/test/Transforms/SimplifyCFG/return-merge.ll b/test/Transforms/SimplifyCFG/return-merge.ll new file mode 100644 index 00000000000..51144f0be2b --- /dev/null +++ b/test/Transforms/SimplifyCFG/return-merge.ll @@ -0,0 +1,18 @@ +; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep br + +int %test1(bool %C) { +entry: + br bool %C, label %T, label %F +T: + ret int 1 +F: + ret int 0 +} + +void %test2(bool %C) { + br bool %C, label %T, label %F +T: + ret void +F: + ret void +}