2003-04-25-AssertFail.ll 599 B

1234567891011121314151617181920
  1. ; This testcase exposed a problem with the loop identification pass (LoopInfo).
  2. ; Basically, it was incorrectly calculating the loop nesting information.
  3. ;
  4. ; RUN: opt < %s -loop-simplify
  5. define i32 @yylex() {
  6. br label %loopentry.0
  7. loopentry.0: ; preds = %else.4, %0
  8. br label %loopexit.2
  9. loopexit.2: ; preds = %else.4, %loopexit.2, %loopentry.0
  10. br i1 false, label %loopexit.2, label %else.4
  11. yy_find_action: ; preds = %else.4
  12. br label %else.4
  13. else.4: ; preds = %yy_find_action, %loopexit.2
  14. switch i32 0, label %loopexit.2 [
  15. i32 2, label %yy_find_action
  16. i32 0, label %loopentry.0
  17. ]
  18. }