From: Chris Lattner Date: Tue, 16 Nov 2004 16:39:20 +0000 (+0000) Subject: New testcase for recent patch to SCCP, thanks to Nate Begeman for pointing X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=154113b78ce1e1517ba8afe6dd9f832e54dd4833;p=oota-llvm.git New testcase for recent patch to SCCP, thanks to Nate Begeman for pointing out this recent regression git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17898 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/SCCP/2004-11-16-DeadInvoke.ll b/test/Transforms/SCCP/2004-11-16-DeadInvoke.ll new file mode 100644 index 00000000000..7ca86536bde --- /dev/null +++ b/test/Transforms/SCCP/2004-11-16-DeadInvoke.ll @@ -0,0 +1,14 @@ +; RUN: llvm-as < %s | opt -sccp -disable-output + +implementation + +declare int %foo() + +void %caller() { + br bool true, label %T, label %F +F: + %X = invoke int %foo() to label %T unwind label %T + +T: + ret void +}