2003-06-05-BranchInvertInfLoop.ll 407 B

12345678910111213141516
  1. ; This testcase causes an infinite loop in the instruction combiner,
  2. ; because it things that the constant value is a not expression... and
  3. ; constantly inverts the branch back and forth.
  4. ;
  5. ; RUN: opt < %s -instcombine -disable-output
  6. define i8 @test19(i1 %c) {
  7. br i1 true, label %True, label %False
  8. True: ; preds = %0
  9. ret i8 1
  10. False: ; preds = %0
  11. ret i8 3
  12. }