Lines Matching refs:Cost
186 bool CanCauseHighRegPressure(const DenseMap<unsigned, int> &Cost,
788 auto Cost = calcRegisterCost(MI, /*ConsiderSeen=*/true, ConsiderUnseenAsDef); in UpdateRegPressure() local
789 for (const auto &RPIdAndCost : Cost) { in UpdateRegPressure()
807 DenseMap<unsigned, int> Cost; in calcRegisterCost() local
809 return Cost; in calcRegisterCost()
838 if (Cost.find(*PS) == Cost.end()) in calcRegisterCost()
839 Cost[*PS] = RCCost; in calcRegisterCost()
841 Cost[*PS] += RCCost; in calcRegisterCost()
844 return Cost; in calcRegisterCost()
1031 bool MachineLICM::CanCauseHighRegPressure(const DenseMap<unsigned, int>& Cost, in CanCauseHighRegPressure() argument
1033 for (const auto &RPIdAndCost : Cost) { in CanCauseHighRegPressure()
1059 auto Cost = calcRegisterCost(MI, /*ConsiderSeen=*/false, in UpdateBackTraceRegPressure() local
1064 for (const auto &RPIdAndCost : Cost) in UpdateBackTraceRegPressure()
1122 auto Cost = calcRegisterCost(&MI, /*ConsiderSeen=*/false, in IsProfitableToHoist() local
1127 if (!CanCauseHighRegPressure(Cost, CheapInstr)) { in IsProfitableToHoist()