brintos

brintos / llvm-project-archived public Read only

0
0
Text · 635 B · a42f750 Raw
24 lines · plain
1; The PHI cannot be eliminated from this testcase, SCCP is mishandling invoke's!2; RUN: opt < %s -passes=sccp -S | grep phi3 4declare void @foo()5 6define i32 @test(i1 %cond) personality ptr @__gxx_personality_v0 {7Entry:8	br i1 %cond, label %Inv, label %Cont9Inv:		; preds = %Entry10	invoke void @foo( )11			to label %Ok unwind label %LPad12Ok:		; preds = %Inv13	br label %Cont14LPad:15        %val = landingpad { ptr, i32 }16                 catch ptr null17        br label %Cont18Cont:		; preds = %Ok, %Inv, %Entry19	%X = phi i32 [ 0, %Entry ], [ 1, %Ok ], [ 0, %LPad ]		; <i32> [#uses=1]20	ret i32 %X21}22 23declare i32 @__gxx_personality_v0(...)24