llvm-6502/test/Transforms/ADCE/2002-05-28-Crash-distilled.ll
2006-12-02 04:23:10 +00:00

18 lines
396 B
LLVM

; This testcase is a distilled form of: 2002-05-28-Crash.ll
; RUN: llvm-upgrade < %s | llvm-as | 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
}