When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / Transforms / ADCE / 2002-05-28-Crash-distilled.ll
blob337be9f4fa43fbca994049cd72302ceb84ad606b
1 ; This testcase is a distilled form of: 2002-05-28-Crash.ll
3 ; RUN: opt < %s -adce 
5 define float @test(i32 %i) {
6         %F = sitofp i32 %i to float             ; <float> [#uses=1]
7         %I = bitcast i32 %i to i32              ; <i32> [#uses=1]
8         br label %Loop
10 Loop:           ; preds = %Loop, %0
11         %B = icmp ne i32 %I, 0          ; <i1> [#uses=1]
12         br i1 %B, label %Out, label %Loop
14 Out:            ; preds = %Loop
15         ret float %F