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
This commit is contained in:
Chris Lattner 2002-05-28 21:29:28 +00:00
parent 1303b5d3cb
commit 5454f82af2
2 changed files with 18 additions and 1 deletions

View File

@ -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
}

View File

@ -11,7 +11,7 @@
; return !s;
;}
;
; RUN: as < %s | opt -adce | dis
; RUN: as < %s | opt -adce
implementation ; Functions: