PhiEliminate2.ll 606 B

1234567891011121314151617
  1. ; RUN: opt < %s -simplifycfg -S | not grep br
  2. define i32 @test(i1 %C, i32 %V1, i32 %V2, i16 %V3) {
  3. entry:
  4. br i1 %C, label %then, label %else
  5. then: ; preds = %entry
  6. %V4 = or i32 %V2, %V1 ; <i32> [#uses=1]
  7. br label %Cont
  8. else: ; preds = %entry
  9. %V5 = sext i16 %V3 to i32 ; <i32> [#uses=1]
  10. br label %Cont
  11. Cont: ; preds = %then, %else
  12. %V6 = phi i32 [ %V5, %else ], [ %V4, %then ] ; <i32> [#uses=0]
  13. call i32 @test( i1 false, i32 0, i32 0, i16 0 ) ; <i32>:0 [#uses=0]
  14. ret i32 %V1
  15. }