mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-30 15:45:26 +00:00
Insert loop into LQ before visiting children.
llvm-svn: 34982
This commit is contained in:
parent
42d0886ca0
commit
bee9c51214
@ -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