Lines Matching defs:InstCostMap
187 /// costs in \p InstCostMap. This may need to be generated for select-like
190 bool IsTrue, const DenseMap<const Instruction *, CostInfo> &InstCostMap,
195 auto It = InstCostMap.find(IV);
196 return It != InstCostMap.end() ? It->second.NonPredCost
211 auto It = InstCostMap.find(OpI);
212 if (It != InstCostMap.end())
279 DenseMap<const Instruction *, CostInfo> &InstCostMap,
968 DenseMap<const Instruction *, CostInfo> InstCostMap;
971 if (!computeLoopCosts(L, SIGroups, InstCostMap, LoopCost) ||
981 SelectCost = std::max(SelectCost, InstCostMap[SI.getI()].PredCost);
982 BranchCost = std::max(BranchCost, InstCostMap[SI.getI()].NonPredCost);
1281 DenseMap<const Instruction *, CostInfo> &InstCostMap, CostInfo *LoopCost) {
1307 if (auto It = InstCostMap.find(UI); It != InstCostMap.end()) {
1333 Scaled64 TrueOpCost = SI.getOpCostOnBranch(true, InstCostMap, TTI);
1334 Scaled64 FalseOpCost = SI.getOpCostOnBranch(false, InstCostMap, TTI);
1340 if (auto It = InstCostMap.find(CI); It != InstCostMap.end())
1349 InstCostMap[&I] = {IPredCost, INonPredCost};