Lines Matching defs:Loops
58 /// Retrieve the innermost loop in the given loop nest \p Loops. It returns a
62 static Loop *getInnerMostLoop(const LoopVectorTy &Loops) {
63 assert(!Loops.empty() && "Expecting a non-empy loop vector");
65 Loop *LastLoop = Loops.back();
69 assert(Loops.size() == 1 && "Expecting a single loop");
73 return (llvm::is_sorted(Loops,
568 CacheCost::CacheCost(const LoopVectorTy &Loops, const LoopInfo &LI,
572 : Loops(Loops), TRT(TRT.value_or(TemporalReuseThreshold)), LI(LI), SE(SE),
574 assert(!Loops.empty() && "Expecting a non-empty loop vector.");
576 for (const Loop *L : Loops) {
593 LoopVectorTy Loops;
594 append_range(Loops, breadth_first(&Root));
596 if (!getInnerMostLoop(Loops)) {
602 return std::make_unique<CacheCost>(Loops, AR.LI, AR.SE, AR.TTI, AR.AA, DI, TRT);
612 for (const Loop *L : Loops) {
629 Loop *InnerMostLoop = getInnerMostLoop(Loops);