PR24013.ll 545 B

12345678910111213141516171819
  1. ; RUN: opt -licm -S < %s | FileCheck %s
  2. define void @f(i1 zeroext %p1) {
  3. ; CHECK-LABEL: @f(
  4. entry:
  5. br label %lbl
  6. lbl.loopexit: ; No predecessors!
  7. br label %lbl
  8. lbl: ; preds = %lbl.loopexit, %entry
  9. %phi = phi i32 [ %conv, %lbl.loopexit ], [ undef, %entry ]
  10. ; CHECK: phi i32 [ undef, {{.*}} ], [ undef
  11. br label %if.then.5
  12. if.then.5: ; preds = %if.then.5, %lbl
  13. %conv = zext i1 undef to i32
  14. br label %if.then.5
  15. }