Lines Matching refs:LoopSize
677 InstructionCost LoopSize = Metrics.NumInsts; in ApproximateLoopSize() local
685 if (LoopSize.isValid() && *LoopSize.getValue() < BEInsns + 1) in ApproximateLoopSize()
687 LoopSize = BEInsns + 1; in ApproximateLoopSize()
689 return LoopSize; in ApproximateLoopSize()
754 const unsigned LoopSize; member in UnrollCostEstimator
757 UnrollCostEstimator(Loop &L, unsigned LoopSize) : LoopSize(LoopSize) {} in UnrollCostEstimator() argument
764 assert(LoopSize >= UP.BEInsns && in getUnrolledLoopSize()
767 return static_cast<uint64_t>(LoopSize - UP.BEInsns) * CountOverwrite + in getUnrolledLoopSize()
770 return static_cast<uint64_t>(LoopSize - UP.BEInsns) * UP.Count + in getUnrolledLoopSize()
834 shouldPartialUnroll(const unsigned LoopSize, const unsigned TripCount, in shouldPartialUnroll() argument
853 (LoopSize - UP.BEInsns); in shouldPartialUnroll()
893 bool MaxOrZero, unsigned TripMultiple, unsigned LoopSize, in computeUnrollCount() argument
897 UnrollCostEstimator UCE(*L, LoopSize); in computeUnrollCount()
981 computePeelCount(L, LoopSize, PP, TripCount, DT, SE, UP.Threshold); in computeUnrollCount()
995 if (auto UnrollFactor = shouldPartialUnroll(LoopSize, TripCount, UCE, UP)) { in computeUnrollCount()
1204 unsigned LoopSize = *LoopSizeIC.getValue(); in tryToUnrollLoop() local
1215 UP.Threshold = std::max(UP.Threshold, LoopSize + 1); in tryToUnrollLoop()
1276 TripMultiple, LoopSize, UP, PP, UseUpperBound); in tryToUnrollLoop()