mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-18 16:03:17 +00:00
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:
parent
1303b5d3cb
commit
5454f82af2
17
test/Transforms/ADCE/2002-05-28-Crash-distilled.ll
Normal file
17
test/Transforms/ADCE/2002-05-28-Crash-distilled.ll
Normal 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
|
||||
}
|
||||
|
@ -11,7 +11,7 @@
|
||||
; return !s;
|
||||
;}
|
||||
;
|
||||
; RUN: as < %s | opt -adce | dis
|
||||
; RUN: as < %s | opt -adce
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user