Lines Matching defs:Cost
206 /// check if hoisting an instruction of the given cost matrix can cause high
208 bool CanCauseHighRegPressure(DenseMap<unsigned, int> &Cost, bool Cheap);
244 /// index, return the ID and cost of its representative register class by
777 /// index, return the ID and cost of its representative register class.
1068 /// if hoisting an instruction of the given cost matrix can cause high
1070 bool MachineLICM::CanCauseHighRegPressure(DenseMap<unsigned, int> &Cost,
1072 for (DenseMap<unsigned, int>::iterator CI = Cost.begin(), CE = Cost.end();
1079 int Cost = CI->second;
1088 if (RP[RCId] + Cost >= Limit)
1103 // First compute the 'cost' of the instruction, i.e. its contribution
1105 DenseMap<unsigned, int> Cost;
1117 DenseMap<unsigned, int>::iterator CI = Cost.find(RCId);
1118 if (CI != Cost.end())
1121 Cost.insert(std::make_pair(RCId, RCCost));
1123 DenseMap<unsigned, int>::iterator CI = Cost.find(RCId);
1124 if (CI != Cost.end())
1127 Cost.insert(std::make_pair(RCId, -RCCost));
1134 for (DenseMap<unsigned, int>::iterator CI = Cost.begin(), CE = Cost.end();
1182 DenseMap<unsigned, int> Cost;
1199 Cost[RCId] += RCCost;
1204 Cost[RCId] -= RCCost;
1210 if (!CanCauseHighRegPressure(Cost, CheapInstr)) {