Lines Matching refs:Unloop
397 Loop *Unloop; member in __anonf0e9ec370111::UnloopUpdater
414 Unloop(UL), LI(LInfo), DFS(UL), FoundIB(false) {} in UnloopUpdater()
430 if (Unloop->getNumBlocks()) { in updateBlockParents()
442 assert((NL != Unloop && (!NL || NL->contains(Unloop))) && in updateBlockParents()
449 assert((FoundIB || Unloop->contains(L)) && "uninitialized successor"); in updateBlockParents()
457 assert(NIters < Unloop->getNumBlocks() && "runaway iterative algorithm"); in updateBlockParents()
468 assert(NL != Unloop && (!NL || NL->contains(Unloop)) && in updateBlockParents()
481 for (Loop::block_iterator BI = Unloop->block_begin(), in removeBlocksFromAncestors()
482 BE = Unloop->block_end(); BI != BE; ++BI) { in removeBlocksFromAncestors()
489 else if (Unloop->contains(NewParent)) in removeBlocksFromAncestors()
494 for (Loop *OldParent = Unloop->getParentLoop(); OldParent != NewParent; in removeBlocksFromAncestors()
505 while (!Unloop->empty()) { in updateSubloopParents()
506 Loop *Subloop = *llvm::prior(Unloop->end()); in updateSubloopParents()
507 Unloop->removeChildLoop(llvm::prior(Unloop->end())); in updateSubloopParents()
529 if (NearLoop != Unloop && Unloop->contains(NearLoop)) { in getNearestLoop()
532 while (Subloop->getParentLoop() != Unloop) { in getNearestLoop()
538 SubloopParents[Subloop] = Unloop; in getNearestLoop()
552 if (L == Unloop) { in getNearestLoop()
558 if (L != Unloop && Unloop->contains(L)) { in getNearestLoop()
564 assert(L->getParentLoop() == Unloop && "cannot skip into nested loops"); in getNearestLoop()
570 if (L == Unloop) { in getNearestLoop()
574 if (L && !L->contains(Unloop)) { in getNearestLoop()
578 if (NearLoop == Unloop || !NearLoop || NearLoop->contains(L)) in getNearestLoop()
604 void LoopInfo::updateUnloop(Loop *Unloop) { in updateUnloop() argument
607 if (!Unloop->getParentLoop()) { in updateUnloop()
609 for (Loop::block_iterator I = Unloop->block_begin(), in updateUnloop()
610 E = Unloop->block_end(); I != E; ++I) { in updateUnloop()
613 if (getLoopFor(*I) != Unloop) in updateUnloop()
624 if (*I == Unloop) { in updateUnloop()
631 while (!Unloop->empty()) in updateUnloop()
632 LI.addTopLevelLoop(Unloop->removeChildLoop(llvm::prior(Unloop->end()))); in updateUnloop()
639 UnloopUpdater Updater(Unloop, this); in updateUnloop()
649 Loop *ParentLoop = Unloop->getParentLoop(); in updateUnloop()
652 if (*I == Unloop) { in updateUnloop()