mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 15:19:33 +00:00
4572ce85b0
llvm-svn: 33296
28 lines
574 B
LLVM
28 lines
574 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 | 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
|
|
}
|