Home
last modified time | relevance | path

Searched refs:TotalMatCost (Results 1 – 1 of 1) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DSpeculateAroundPHIs.cpp316 InstructionCost TotalMatCost = TTI.TCC_Free, TotalFoldedCost = TTI.TCC_Free; in isSafeAndProfitableToSpeculateAroundPHI() local
323 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()