basictest.ll 305 B

12345678910111213141516
  1. ; RUN: opt < %s -loop-simplify
  2. ; This function should get a preheader inserted before BB3, that is jumped
  3. ; to by BB1 & BB2
  4. ;
  5. define void @test() {
  6. br i1 true, label %BB1, label %BB2
  7. BB1: ; preds = %0
  8. br label %BB3
  9. BB2: ; preds = %0
  10. br label %BB3
  11. BB3: ; preds = %BB3, %BB2, %BB1
  12. br label %BB3
  13. }