mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-29 23:12:55 +01:00
f19cdf8254
llvm-svn: 2752
18 lines
376 B
LLVM
18 lines
376 B
LLVM
; 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
|
|
}
|
|
|