20 lines · plain
1; This testcase is a distilled form of: 2002-05-28-Crash.ll2 3; RUN: opt < %s -passes=adce4; RUN: opt < %s -passes=adce -adce-remove-loops -S | FileCheck %s5 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 %Loop10 11Loop: ; preds = %Loop, %012 %B = icmp ne i32 %I, 0 ; <i1> [#uses=1]13; CHECK: br label %Out14 br i1 %B, label %Out, label %Loop15 16Out: ; preds = %Loop17 ret float %F18}19 20