two-entry-phi-return.ll 386 B

123456789101112131415
  1. ; RUN: opt < %s -simplifycfg -S | not grep br
  2. define i1 @qux(i8* %m, i8* %n, i8* %o, i8* %p) nounwind {
  3. entry:
  4. %tmp7 = icmp eq i8* %m, %n
  5. br i1 %tmp7, label %bb, label %UnifiedReturnBlock
  6. bb:
  7. %tmp15 = icmp eq i8* %o, %p
  8. br label %UnifiedReturnBlock
  9. UnifiedReturnBlock:
  10. %result = phi i1 [ 0, %entry ], [ %tmp15, %bb ]
  11. ret i1 %result
  12. }