Searched refs:TotalMatCost (Results 1 – 1 of 1) sorted by relevance
316 InstructionCost TotalMatCost = TTI.TCC_Free, TotalFoldedCost = TTI.TCC_Free; in isSafeAndProfitableToSpeculateAroundPHI() local323 TotalMatCost += MatCost * Count; in isSafeAndProfitableToSpeculateAroundPHI()326 assert(TotalMatCost.isValid() && "Constants must be materializable"); in isSafeAndProfitableToSpeculateAroundPHI()327 assert(TotalFoldedCost <= TotalMatCost && "If each constant's folded cost is " in isSafeAndProfitableToSpeculateAroundPHI()330 LLVM_DEBUG(dbgs() << " Cost savings " << (TotalMatCost - TotalFoldedCost) in isSafeAndProfitableToSpeculateAroundPHI()332 CostSavingsMap[&PN] = TotalMatCost - TotalFoldedCost; in isSafeAndProfitableToSpeculateAroundPHI()