PHINode.ll 425 B

123456789101112131415
  1. ; -simplifycfg is not folding blocks if there is a PHI node involved. This
  2. ; should be fixed eventually
  3. ; RUN: opt < %s -simplifycfg -S | FileCheck %s
  4. define i32 @main(i32 %argc) {
  5. ; <label>:0
  6. ; CHECK-NOT: br label %InlinedFunctionReturnNode
  7. br label %InlinedFunctionReturnNode
  8. InlinedFunctionReturnNode: ; preds = %0
  9. %X = phi i32 [ 7, %0 ] ; <i32> [#uses=1]
  10. %Y = add i32 %X, %argc ; <i32> [#uses=1]
  11. ret i32 %Y
  12. }