Lines Matching refs:Cost
244 bool CanCauseHighRegPressure(const DenseMap<unsigned, int> &Cost,
926 auto Cost = calcRegisterCost(MI, /*ConsiderSeen=*/true, ConsiderUnseenAsDef); in UpdateRegPressure() local
927 for (const auto &RPIdAndCost : Cost) { in UpdateRegPressure()
945 DenseMap<unsigned, int> Cost; in calcRegisterCost() local
947 return Cost; in calcRegisterCost()
976 if (!Cost.contains(*PS)) in calcRegisterCost()
977 Cost[*PS] = RCCost; in calcRegisterCost()
979 Cost[*PS] += RCCost; in calcRegisterCost()
982 return Cost; in calcRegisterCost()
1213 MachineLICMBase::CanCauseHighRegPressure(const DenseMap<unsigned, int>& Cost, in CanCauseHighRegPressure() argument
1215 for (const auto &RPIdAndCost : Cost) { in CanCauseHighRegPressure()
1241 auto Cost = calcRegisterCost(MI, /*ConsiderSeen=*/false, in UpdateBackTraceRegPressure() local
1246 for (const auto &RPIdAndCost : Cost) in UpdateBackTraceRegPressure()
1308 auto Cost = calcRegisterCost(&MI, /*ConsiderSeen=*/false, in IsProfitableToHoist() local
1313 if (!CanCauseHighRegPressure(Cost, CheapInstr)) { in IsProfitableToHoist()
1347 [&CurLoop, this, DefReg, Cost](MachineInstr &UseMI) { in IsProfitableToHoist()
1355 if (CanCauseHighRegPressure(Cost, false) && in IsProfitableToHoist()