From c917d106aaa05f03a037ab4258d416d35760ce32 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 24 Jun 2002 17:45:37 +0000 Subject: [PATCH] Testcase for unimplemented feature llvm-svn: 2766 --- .../SimplifyCFG/2002-06-24-PHINode.ll | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 llvm/test/Regression/Transforms/SimplifyCFG/2002-06-24-PHINode.ll diff --git a/llvm/test/Regression/Transforms/SimplifyCFG/2002-06-24-PHINode.ll b/llvm/test/Regression/Transforms/SimplifyCFG/2002-06-24-PHINode.ll new file mode 100644 index 000000000000..7ca058ffb8c3 --- /dev/null +++ b/llvm/test/Regression/Transforms/SimplifyCFG/2002-06-24-PHINode.ll @@ -0,0 +1,17 @@ +; -simplifycfg is not folding blocks if there is a PHI node involved. This +; should be fixed eventually + +; RUN: if as < %s | opt -sccp | dis | grep br +; RUN: then exit 1 +; RUN: else exit 0 +; RUN: fi + +int %main(int %argc) { + br label %InlinedFunctionReturnNode + +InlinedFunctionReturnNode: ;[#uses=1] + %X = phi int [ 7, %0 ] ; [#uses=1] + %Y = add int %X, %argc ; [#uses=1] + ret int %Y +} +