summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-25 05:49:13 +0000
committerChris Lattner <sabre@nondot.org>2005-03-25 05:49:13 +0000
commita92076d475ed51d3ced5f2ec077f33d97aa8c8bb (patch)
tree242f523cb411cfc9943c1d07333f147b1eaf3c83
parent70ac2dcb841dc62f08e16f0b0e2cefbf01baa4c5 (diff)
New testcase that crashes licm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20829 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/LICM/2005-03-24-LICM-Aggregate-Crash.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/LICM/2005-03-24-LICM-Aggregate-Crash.ll b/test/Transforms/LICM/2005-03-24-LICM-Aggregate-Crash.ll
new file mode 100644
index 00000000000..6c5b1a57e17
--- /dev/null
+++ b/test/Transforms/LICM/2005-03-24-LICM-Aggregate-Crash.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | opt -licm -disable-output
+
+void %test({int}* %P) {
+ br label %Loop
+
+Loop:
+ free {int}* %P
+ br label %Loop
+}
+