apint-phi.ll 294 B

12345678910111213141516171819
  1. ; RUN: opt < %s -sccp -S | not grep phi
  2. define i999 @test(i999%A, i1 %c) {
  3. bb1:
  4. br label %BB2
  5. BB2:
  6. %V = phi i999 [2, %bb1], [%A, %BB4]
  7. br label %BB3
  8. BB3:
  9. %E = trunc i999 %V to i1
  10. %F = and i1 %E, %c
  11. br i1 %F, label %BB4, label %BB5
  12. BB4:
  13. br label %BB2
  14. BB5:
  15. ret i999 %V
  16. }