linux-packaging-mono/external/llvm-project/llvm/test/Transforms/LICM/2014-09-10-doFinalizationAssert.ll
Xamarin Public Jenkins (auto-signing) 468663ddbb Imported Upstream version 6.10.0.49
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
2020-01-16 16:38:04 +00:00

31 lines
681 B
LLVM

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