1; This testcase is a distilled form of: 2002-05-28-Crash.ll
2
3; RUN: opt < %s -adce
4; RUN: opt < %s -adce -adce-remove-loops -S | FileCheck %s
5
6define float @test(i32 %i) {
7        %F = sitofp i32 %i to float             ; <float> [#uses=1]
8        %I = bitcast i32 %i to i32              ; <i32> [#uses=1]
9        br label %Loop
10
11Loop:           ; preds = %Loop, %0
12        %B = icmp ne i32 %I, 0          ; <i1> [#uses=1]
13; CHECK:   br label %Out
14        br i1 %B, label %Out, label %Loop
15
16Out:            ; preds = %Loop
17        ret float %F
18}
19
20