New testcase for recent patch to SCCP, thanks to Nate Begeman for pointing
authorChris Lattner <sabre@nondot.org>
Tue, 16 Nov 2004 16:39:20 +0000 (16:39 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 16 Nov 2004 16:39:20 +0000 (16:39 +0000)
out this recent regression

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17898 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/SCCP/2004-11-16-DeadInvoke.ll [new file with mode: 0644]

diff --git a/test/Transforms/SCCP/2004-11-16-DeadInvoke.ll b/test/Transforms/SCCP/2004-11-16-DeadInvoke.ll
new file mode 100644 (file)
index 0000000..7ca8653
--- /dev/null
@@ -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
+}