21 lines · plain
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 -passes=loop-simplify5 6define i32 @yylex() {7 br label %loopentry.08loopentry.0: ; preds = %else.4, %09 br label %loopexit.210loopexit.2: ; preds = %else.4, %loopexit.2, %loopentry.011 br i1 false, label %loopexit.2, label %else.412yy_find_action: ; preds = %else.413 br label %else.414else.4: ; preds = %yy_find_action, %loopexit.215 switch i32 0, label %loopexit.2 [16 i32 2, label %yy_find_action17 i32 0, label %loopentry.018 ]19}20 21