New testcase that is a distilled form of the other one
llvm-svn: 2752
This commit is contained in:
parent
d4eaa7e14c
commit
7817cd6833
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
; return !s;
|
||||
;}
|
||||
;
|
||||
; RUN: as < %s | opt -adce | dis
|
||||
; RUN: as < %s | opt -adce
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue