aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/ADCE/2002-05-28-Crash-distilled.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/ADCE/2002-05-28-Crash-distilled.ll')
-rw-r--r--test/Transforms/ADCE/2002-05-28-Crash-distilled.ll17
1 files changed, 17 insertions, 0 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..0d5adf9
--- /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: llvm-upgrade < %s | llvm-as | 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
+}
+