1 ; This testcase is a distilled form of: 2002-05-28-Crash.ll 2 3 ; RUN: opt < %s -adce 4 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 9 10 Loop: ; preds = %Loop, %0 11 %B = icmp ne i32 %I, 0 ; <i1> [#uses=1] 12 br i1 %B, label %Out, label %Loop 13 14 Out: ; preds = %Loop 15 ret float %F 16 } 17 18