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