1 ; RUN: opt < %s -scalar-evolution -licm -loop-unroll -disable-output
2 ; Test triggered an assertion in doFinalization() because loop unroll was deleting
3 ; the inner loop which caused the loop to not get removed from the
5 ; Test case taken from test/Transforms/LoopUnroll/unloop.ll.
7 declare i1 @check() nounwind
8 define void @skiplevelexit() nounwind {
16 %iv = phi i32 [ 0, %outer ], [ %inc, %tail ]
18 call zeroext i1 @check()
19 br i1 true, label %outer.backedge, label %tail
22 br i1 false, label %inner, label %exit