Lines Matching refs:Subloop
506 Loop *Subloop = *llvm::prior(Unloop->end()); in updateSubloopParents() local
509 assert(SubloopParents.count(Subloop) && "DFS failed to visit subloop"); in updateSubloopParents()
510 if (SubloopParents[Subloop]) in updateSubloopParents()
511 SubloopParents[Subloop]->addChildLoop(Subloop); in updateSubloopParents()
513 LI->addTopLevelLoop(Subloop); in updateSubloopParents()
528 Loop *Subloop = 0; in getNearestLoop() local
530 Subloop = NearLoop; in getNearestLoop()
532 while (Subloop->getParentLoop() != Unloop) { in getNearestLoop()
533 Subloop = Subloop->getParentLoop(); in getNearestLoop()
534 assert(Subloop && "subloop is not an ancestor of the original loop"); in getNearestLoop()
537 if (!SubloopParents.count(Subloop)) in getNearestLoop()
538 SubloopParents[Subloop] = Unloop; in getNearestLoop()
539 NearLoop = SubloopParents[Subloop]; in getNearestLoop()
544 assert(!Subloop && "subloop blocks must have a successor"); in getNearestLoop()
560 if (Subloop) in getNearestLoop()
581 if (Subloop) { in getNearestLoop()
582 SubloopParents[Subloop] = NearLoop; in getNearestLoop()