Lines Matching refs:LoopList
270 static void populateWorklist(Loop &L, LoopVector &LoopList) { in populateWorklist() argument
274 assert(LoopList.empty() && "LoopList should initially be empty!"); in populateWorklist()
282 LoopList = {}; in populateWorklist()
286 LoopList.push_back(CurrentLoop); in populateWorklist()
290 LoopList.push_back(CurrentLoop); in populateWorklist()
428 SmallVector<Loop *, 8> LoopList; in run() local
429 populateWorklist(*L, LoopList); in run()
430 return processLoopList(LoopList); in run()
434 SmallVector<Loop *, 8> LoopList(LN.getLoops().begin(), LN.getLoops().end()); in run() local
435 for (unsigned I = 1; I < LoopList.size(); ++I) in run()
436 if (LoopList[I]->getParentLoop() != LoopList[I - 1]) in run()
438 return processLoopList(LoopList); in run()
441 bool isComputableLoopNest(ArrayRef<Loop *> LoopList) { in isComputableLoopNest()
442 for (Loop *L : LoopList) { in isComputableLoopNest()
460 unsigned selectLoopForInterchange(ArrayRef<Loop *> LoopList) { in selectLoopForInterchange()
463 return LoopList.size() - 1; in selectLoopForInterchange()
466 bool processLoopList(SmallVectorImpl<Loop *> &LoopList) { in processLoopList()
468 unsigned LoopNestDepth = LoopList.size(); in processLoopList()
478 if (!isComputableLoopNest(LoopList)) { in processLoopList()
487 Loop *OuterMostLoop = *(LoopList.begin()); in processLoopList()
505 unsigned SelecLoopId = selectLoopForInterchange(LoopList); in processLoopList()
528 bool Interchanged = processLoop(LoopList[i], LoopList[i - 1], i, i - 1, in processLoopList()
533 std::swap(LoopList[i - 1], LoopList[i]); in processLoopList()