Lines Matching refs:Unloop

694   Loop &Unloop;  member in __anon118e20690511::UnloopUpdater
710 UnloopUpdater(Loop *UL, LoopInfo *LInfo) : Unloop(*UL), LI(LInfo), DFS(UL) {} in UnloopUpdater()
726 if (Unloop.getNumBlocks()) { in updateBlockParents()
737 assert((NL != &Unloop && (!NL || NL->contains(&Unloop))) && in updateBlockParents()
743 assert((FoundIB || Unloop.contains(L)) && "uninitialized successor"); in updateBlockParents()
751 assert(NIters < Unloop.getNumBlocks() && "runaway iterative algorithm"); in updateBlockParents()
764 assert(NL != &Unloop && (!NL || NL->contains(&Unloop)) && in updateBlockParents()
777 for (BasicBlock *BB : Unloop.blocks()) { in removeBlocksFromAncestors()
779 if (Unloop.contains(OuterParent)) { in removeBlocksFromAncestors()
780 while (OuterParent->getParentLoop() != &Unloop) in removeBlocksFromAncestors()
786 for (Loop *OldParent = Unloop.getParentLoop(); OldParent != OuterParent; in removeBlocksFromAncestors()
796 while (!Unloop.isInnermost()) { in updateSubloopParents()
797 Loop *Subloop = *std::prev(Unloop.end()); in updateSubloopParents()
798 Unloop.removeChildLoop(std::prev(Unloop.end())); in updateSubloopParents()
820 if (NearLoop != &Unloop && Unloop.contains(NearLoop)) { in getNearestLoop()
823 while (Subloop->getParentLoop() != &Unloop) { in getNearestLoop()
828 NearLoop = SubloopParents.insert({Subloop, &Unloop}).first->second; in getNearestLoop()
840 if (L == &Unloop) { in getNearestLoop()
846 if (L != &Unloop && Unloop.contains(L)) { in getNearestLoop()
852 assert(L->getParentLoop() == &Unloop && "cannot skip into nested loops"); in getNearestLoop()
858 if (L == &Unloop) { in getNearestLoop()
862 if (L && !L->contains(&Unloop)) { in getNearestLoop()
866 if (NearLoop == &Unloop || !NearLoop || NearLoop->contains(L)) in getNearestLoop()
887 void LoopInfo::erase(Loop *Unloop) { in erase() argument
888 assert(!Unloop->isInvalid() && "Loop has already been erased!"); in erase()
890 auto InvalidateOnExit = make_scope_exit([&]() { destroy(Unloop); }); in erase()
893 if (Unloop->isOutermost()) { in erase()
895 for (BasicBlock *BB : Unloop->blocks()) { in erase()
897 if (getLoopFor(BB) != Unloop) in erase()
908 if (*I == Unloop) { in erase()
915 while (!Unloop->isInnermost()) in erase()
916 addTopLevelLoop(Unloop->removeChildLoop(std::prev(Unloop->end()))); in erase()
923 UnloopUpdater Updater(Unloop, this); in erase()
933 Loop *ParentLoop = Unloop->getParentLoop(); in erase()
936 if (*I == Unloop) { in erase()