| Chris Lattner | 7817cd6 | 2002-05-28 21:29:28 +0000 | [diff] [blame^] | 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 | |||||