blob: 347559be48c90526129a0913703425d797bec02d [file] [log] [blame]
Chris Lattner7817cd62002-05-28 21:29:28 +00001; This testcase is a distilled form of: 2002-05-28-Crash.ll
2
3; RUN: as < %s | opt -adce
4
5float "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
10Loop: ; This block is dead
11 %B = cast uint %I to bool
12 br bool %B, label %Out, label %Loop
13
14Out:
15 ret float %F
16}
17