Lines Matching refs:second
142 if (!Visited.insert(OpI).second) in isSafeToSpeculatePHIUsers()
217 if (!IncomingConstantBlocks.insert(PN.getIncomingBlock(i)).second) in isSafeAndProfitableToSpeculateAroundPHI()
222 ++InsertResult.first->second.Count; in isSafeAndProfitableToSpeculateAroundPHI()
224 if (!InsertResult.second) in isSafeAndProfitableToSpeculateAroundPHI()
227 int &MatCost = InsertResult.first->second.MatCost; in isSafeAndProfitableToSpeculateAroundPHI()
276 int MatCost = IncomingConstantAndCostsAndCount.second.MatCost; in isSafeAndProfitableToSpeculateAroundPHI()
277 int &FoldedCost = IncomingConstantAndCostsAndCount.second.FoldedCost; in isSafeAndProfitableToSpeculateAroundPHI()
306 int MatCost = IncomingConstantAndCostsAndCount.second.MatCost; in isSafeAndProfitableToSpeculateAroundPHI()
307 int FoldedCost = IncomingConstantAndCostsAndCount.second.FoldedCost; in isSafeAndProfitableToSpeculateAroundPHI()
308 int Count = IncomingConstantAndCostsAndCount.second.Count; in isSafeAndProfitableToSpeculateAroundPHI()
432 UserToPNMap.insert({UI, {}}).first->second.push_back(PN); in findProfitablePHIs()
459 Cost += CostMapIt->second; in findProfitablePHIs()
462 bool Inserted = SpecCostMap.insert({I, Cost}).second; in findProfitablePHIs()
471 auto &UserPNs = UserPNsIt->second; in findProfitablePHIs()
474 int &PNUserCount = PNUserCountMap.find(UserPN)->second; in findProfitablePHIs()
489 SpecCostMap.find(cast<Instruction>(U.getUser()))->second; in findProfitablePHIs()
494 int CostSavings = CostSavingsMap.find(PN)->second; in findProfitablePHIs()
512 if (CostMapIt->second == 0) in findProfitablePHIs()
515 CostMapIt->second = 0; in findProfitablePHIs()
524 assert(SpecCostMap.find(SpecI)->second == 0 && in findProfitablePHIs()
533 if (CostMapIt == SpecCostMap.end() || CostMapIt->second == 0) in findProfitablePHIs()
535 CostMapIt->second = 0; in findProfitablePHIs()
626 if (!InsertResult.second) in speculatePHIs()
629 auto &SpeculatedVals = InsertResult.first->second; in speculatePHIs()
641 SpeculatedVals.push_back(IncomingValueMap.find(PredBB)->second); in speculatePHIs()
665 const auto &SpeculatedVals = MapIt->second; in speculatePHIs()
700 auto &SpeculatedVals = SpeculatedValueMap.find(OrigI)->second; in speculatePHIs()