summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-28 21:29:28 +0000
committerChris Lattner <sabre@nondot.org>2002-05-28 21:29:28 +0000
commit5454f82af22bb42a30dd4227aebae423426785fe (patch)
tree6385bf2023c2d13d907e7df9a135aee0551fa35f
parent1303b5d3cbfebbabfb0bfce9fdd01c62d65ad45f (diff)
downloadexternal_llvm-5454f82af22bb42a30dd4227aebae423426785fe.zip
external_llvm-5454f82af22bb42a30dd4227aebae423426785fe.tar.gz
external_llvm-5454f82af22bb42a30dd4227aebae423426785fe.tar.bz2
New testcase that is a distilled form of the other one
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2752 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/ADCE/2002-05-28-Crash-distilled.ll17
-rw-r--r--test/Transforms/ADCE/2002-05-28-Crash.ll2
2 files changed, 18 insertions, 1 deletions
diff --git a/test/Transforms/ADCE/2002-05-28-Crash-distilled.ll b/test/Transforms/ADCE/2002-05-28-Crash-distilled.ll
new file mode 100644
index 0000000..347559b
--- /dev/null
+++ b/test/Transforms/ADCE/2002-05-28-Crash-distilled.ll
@@ -0,0 +1,17 @@
+; This testcase is a distilled form of: 2002-05-28-Crash.ll
+
+; RUN: as < %s | opt -adce
+
+float "test"(int %i) {
+ %F = cast int %i to float ; This BB is not dead
+ %I = cast int %i to uint ; future dead inst
+ br label %Loop
+
+Loop: ; This block is dead
+ %B = cast uint %I to bool
+ br bool %B, label %Out, label %Loop
+
+Out:
+ ret float %F
+}
+
diff --git a/test/Transforms/ADCE/2002-05-28-Crash.ll b/test/Transforms/ADCE/2002-05-28-Crash.ll
index 184384e..c0dafc6 100644
--- a/test/Transforms/ADCE/2002-05-28-Crash.ll
+++ b/test/Transforms/ADCE/2002-05-28-Crash.ll
@@ -11,7 +11,7 @@
; return !s;
;}
;
-; RUN: as < %s | opt -adce | dis
+; RUN: as < %s | opt -adce
implementation ; Functions: