aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 0000000000..347559be48
--- /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 184384ed48..c0dafc674f 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: