347559be48c90526129a0913703425d797bec02d
[oota-llvm.git] / test / Transforms / ADCE / 2002-05-28-Crash-distilled.ll
1 ; This testcase is a distilled form of: 2002-05-28-Crash.ll
2
3 ; RUN: as < %s | opt -adce 
4
5 float "test"(int %i) {
6         %F = cast int %i to float    ; This BB is not dead
7         %I = cast int %i to uint     ; future dead inst
8         br label %Loop
9
10 Loop:                                ; This block is dead
11         %B = cast uint %I to bool
12         br bool %B, label %Out, label %Loop
13
14 Out:
15         ret float %F
16 }
17