Lines Matching refs:Subloop
504 Loop *Subloop = *std::prev(Unloop.end()); in updateSubloopParents() local
507 assert(SubloopParents.count(Subloop) && "DFS failed to visit subloop"); in updateSubloopParents()
508 if (Loop *Parent = SubloopParents[Subloop]) in updateSubloopParents()
509 Parent->addChildLoop(Subloop); in updateSubloopParents()
511 LI->addTopLevelLoop(Subloop); in updateSubloopParents()
526 Loop *Subloop = nullptr; in getNearestLoop() local
528 Subloop = NearLoop; in getNearestLoop()
530 while (Subloop->getParentLoop() != &Unloop) { in getNearestLoop()
531 Subloop = Subloop->getParentLoop(); in getNearestLoop()
532 assert(Subloop && "subloop is not an ancestor of the original loop"); in getNearestLoop()
536 SubloopParents.insert(std::make_pair(Subloop, &Unloop)).first->second; in getNearestLoop()
541 assert(!Subloop && "subloop blocks must have a successor"); in getNearestLoop()
557 if (Subloop) in getNearestLoop()
578 if (Subloop) { in getNearestLoop()
579 SubloopParents[Subloop] = NearLoop; in getNearestLoop()