Lines Matching refs:Unloop

684   Loop &Unloop;  member in __anon2f4fe09d0511::UnloopUpdater
701 : Unloop(*UL), LI(LInfo), DFS(UL), FoundIB(false) {} in UnloopUpdater()
717 if (Unloop.getNumBlocks()) { in updateBlockParents()
728 assert((NL != &Unloop && (!NL || NL->contains(&Unloop))) && in updateBlockParents()
734 assert((FoundIB || Unloop.contains(L)) && "uninitialized successor"); in updateBlockParents()
742 assert(NIters < Unloop.getNumBlocks() && "runaway iterative algorithm"); in updateBlockParents()
754 assert(NL != &Unloop && (!NL || NL->contains(&Unloop)) && in updateBlockParents()
767 for (BasicBlock *BB : Unloop.blocks()) { in removeBlocksFromAncestors()
769 if (Unloop.contains(OuterParent)) { in removeBlocksFromAncestors()
770 while (OuterParent->getParentLoop() != &Unloop) in removeBlocksFromAncestors()
776 for (Loop *OldParent = Unloop.getParentLoop(); OldParent != OuterParent; in removeBlocksFromAncestors()
786 while (!Unloop.isInnermost()) { in updateSubloopParents()
787 Loop *Subloop = *std::prev(Unloop.end()); in updateSubloopParents()
788 Unloop.removeChildLoop(std::prev(Unloop.end())); in updateSubloopParents()
810 if (NearLoop != &Unloop && Unloop.contains(NearLoop)) { in getNearestLoop()
813 while (Subloop->getParentLoop() != &Unloop) { in getNearestLoop()
818 NearLoop = SubloopParents.insert({Subloop, &Unloop}).first->second; in getNearestLoop()
831 if (L == &Unloop) { in getNearestLoop()
837 if (L != &Unloop && Unloop.contains(L)) { in getNearestLoop()
843 assert(L->getParentLoop() == &Unloop && "cannot skip into nested loops"); in getNearestLoop()
849 if (L == &Unloop) { in getNearestLoop()
853 if (L && !L->contains(&Unloop)) { in getNearestLoop()
857 if (NearLoop == &Unloop || !NearLoop || NearLoop->contains(L)) in getNearestLoop()
878 void LoopInfo::erase(Loop *Unloop) { in erase() argument
879 assert(!Unloop->isInvalid() && "Loop has already been erased!"); in erase()
881 auto InvalidateOnExit = make_scope_exit([&]() { destroy(Unloop); }); in erase()
884 if (Unloop->isOutermost()) { in erase()
886 for (BasicBlock *BB : Unloop->blocks()) { in erase()
888 if (getLoopFor(BB) != Unloop) in erase()
899 if (*I == Unloop) { in erase()
906 while (!Unloop->isInnermost()) in erase()
907 addTopLevelLoop(Unloop->removeChildLoop(std::prev(Unloop->end()))); in erase()
914 UnloopUpdater Updater(Unloop, this); in erase()
924 Loop *ParentLoop = Unloop->getParentLoop(); in erase()
927 if (*I == Unloop) { in erase()