1; The PHI cannot be eliminated from this testcase, SCCP is mishandling invoke's! 2; RUN: opt < %s -sccp -S | grep phi 3 4declare void @foo() 5 6define i32 @test(i1 %cond) { 7Entry: 8 br i1 %cond, label %Inv, label %Cont 9Inv: ; preds = %Entry 10 invoke void @foo( ) 11 to label %Ok unwind label %Cont 12Ok: ; preds = %Inv 13 br label %Cont 14Cont: ; preds = %Ok, %Inv, %Entry 15 %X = phi i32 [ 0, %Entry ], [ 1, %Ok ], [ 0, %Inv ] ; <i32> [#uses=1] 16 ret i32 %X 17} 18 19