From 5454f82af22bb42a30dd4227aebae423426785fe Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 28 May 2002 21:29:28 +0000 Subject: [PATCH] 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 --- .../ADCE/2002-05-28-Crash-distilled.ll | 17 +++++++++++++++++ test/Transforms/ADCE/2002-05-28-Crash.ll | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 test/Transforms/ADCE/2002-05-28-Crash-distilled.ll 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 00000000000..347559be48c --- /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 184384ed48e..c0dafc674fa 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: