Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DSpeculateAroundPHIs.cpp304 int TotalMatCost = TTI.TCC_Free, TotalFoldedCost = TTI.TCC_Free; in isSafeAndProfitableToSpeculateAroundPHI() local
311 TotalFoldedCost += FoldedCost * Count; in isSafeAndProfitableToSpeculateAroundPHI()
313 assert(TotalFoldedCost <= TotalMatCost && "If each constant's folded cost is " in isSafeAndProfitableToSpeculateAroundPHI()
317 LLVM_DEBUG(dbgs() << " Cost savings " << (TotalMatCost - TotalFoldedCost) in isSafeAndProfitableToSpeculateAroundPHI()
319 CostSavingsMap[&PN] = TotalMatCost - TotalFoldedCost; in isSafeAndProfitableToSpeculateAroundPHI()