1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/Other/2003-02-19-LoopInfoNestingBug.ll
Reid Spencer d74463a129 For PR1319: Upgrade to new test harness
llvm-svn: 36070
2007-04-15 10:26:05 +00:00

29 lines
587 B
LLVM

; LoopInfo is incorrectly calculating loop nesting! In this case it doesn't
; figure out that loop "Inner" should be nested inside of leep "LoopHeader",
; and instead nests it just inside loop "Top"
;
; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -loops | \
; RUN: grep { Loop Containing:\[ \]*%Inner}
;
implementation
void %test() {
br label %Top
Top:
br label %LoopHeader
Next:
br bool false, label %Inner, label %Out
Inner:
br bool false, label %Inner, label %LoopHeader
LoopHeader:
br label %Next
Out:
br bool false, label %Top, label %Done
Done:
ret void
}