mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Insert loop into LQ before visiting children.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34982 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fb269cf3e7
commit
622adea47f
@ -138,9 +138,9 @@ void LPPassManager::redoLoop(Loop *L) {
|
||||
|
||||
// Recurse through all subloops and all loops into LQ.
|
||||
static void addLoopIntoQueue(Loop *L, std::deque<Loop *> &LQ) {
|
||||
LQ.push_back(L);
|
||||
for (Loop::iterator I = L->begin(), E = L->end(); I != E; ++I)
|
||||
addLoopIntoQueue(*I, LQ);
|
||||
LQ.push_back(L);
|
||||
}
|
||||
|
||||
/// Pass Manager itself does not invalidate any analysis info.
|
||||
|
Loading…
Reference in New Issue
Block a user