Lines Matching defs:CycleSavings
850 void OverrideCycleSavingsAndSizeForTesting(APInt &CycleSavings, int &Size) {
853 CycleSavings = *AttrCycleSavings;
890 APInt CycleSavings(128, 0);
915 CycleSavings += CurrentSavings;
922 CycleSavings += EntryCount / 2;
923 CycleSavings = CycleSavings.udiv(EntryCount);
928 CycleSavings += getCallsiteCost(TTI, this->CandidateCall, DL);
929 CycleSavings *= *CallerBFI->getBlockProfileCount(CallerBB);
940 OverrideCycleSavingsAndSizeForTesting(CycleSavings, Size);
941 CostBenefit.emplace(APInt(128, Size), CycleSavings);
943 // Let R be the ratio of CycleSavings to Size. We accept the inlining
947 // Specifically, let R = CycleSavings / Size, we accept the inlining
962 // Implementation-wise, use multiplication (CycleSavings * Multiplier,
967 APInt UpperBoundCycleSavings = CycleSavings;
972 APInt LowerBoundCycleSavings = CycleSavings;