Lines Matching refs:Unloop
400 Loop &Unloop; member in __anonaa2990810311::UnloopUpdater
417 Unloop(*UL), LI(LInfo), DFS(UL), FoundIB(false) {} in UnloopUpdater()
433 if (Unloop.getNumBlocks()) { in updateBlockParents()
444 assert((NL != &Unloop && (!NL || NL->contains(&Unloop))) && in updateBlockParents()
451 assert((FoundIB || Unloop.contains(L)) && "uninitialized successor"); in updateBlockParents()
459 assert(NIters < Unloop.getNumBlocks() && "runaway iterative algorithm"); in updateBlockParents()
470 assert(NL != &Unloop && (!NL || NL->contains(&Unloop)) && in updateBlockParents()
483 for (Loop::block_iterator BI = Unloop.block_begin(), in removeBlocksFromAncestors()
484 BE = Unloop.block_end(); BI != BE; ++BI) { in removeBlocksFromAncestors()
486 if (Unloop.contains(OuterParent)) { in removeBlocksFromAncestors()
487 while (OuterParent->getParentLoop() != &Unloop) in removeBlocksFromAncestors()
493 for (Loop *OldParent = Unloop.getParentLoop(); OldParent != OuterParent; in removeBlocksFromAncestors()
503 while (!Unloop.empty()) { in updateSubloopParents()
504 Loop *Subloop = *std::prev(Unloop.end()); in updateSubloopParents()
505 Unloop.removeChildLoop(std::prev(Unloop.end())); in updateSubloopParents()
527 if (NearLoop != &Unloop && Unloop.contains(NearLoop)) { in getNearestLoop()
530 while (Subloop->getParentLoop() != &Unloop) { in getNearestLoop()
536 SubloopParents.insert(std::make_pair(Subloop, &Unloop)).first->second; in getNearestLoop()
549 if (L == &Unloop) { in getNearestLoop()
555 if (L != &Unloop && Unloop.contains(L)) { in getNearestLoop()
561 assert(L->getParentLoop() == &Unloop && "cannot skip into nested loops"); in getNearestLoop()
567 if (L == &Unloop) { in getNearestLoop()
571 if (L && !L->contains(&Unloop)) { in getNearestLoop()
575 if (NearLoop == &Unloop || !NearLoop || NearLoop->contains(L)) in getNearestLoop()
589 void LoopInfo::markAsRemoved(Loop *Unloop) { in markAsRemoved() argument
590 assert(!Unloop->isInvalid() && "Loop has already been removed"); in markAsRemoved()
591 Unloop->invalidate(); in markAsRemoved()
592 RemovedLoops.push_back(Unloop); in markAsRemoved()
595 if (!Unloop->getParentLoop()) { in markAsRemoved()
597 for (Loop::block_iterator I = Unloop->block_begin(), in markAsRemoved()
598 E = Unloop->block_end(); in markAsRemoved()
602 if (getLoopFor(*I) != Unloop) in markAsRemoved()
613 if (*I == Unloop) { in markAsRemoved()
620 while (!Unloop->empty()) in markAsRemoved()
621 addTopLevelLoop(Unloop->removeChildLoop(std::prev(Unloop->end()))); in markAsRemoved()
628 UnloopUpdater Updater(Unloop, this); in markAsRemoved()
638 Loop *ParentLoop = Unloop->getParentLoop(); in markAsRemoved()
641 if (*I == Unloop) { in markAsRemoved()