Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DSpeculateAroundPHIs.cpp212 auto *IncomingC = dyn_cast<ConstantInt>(PN.getIncomingValue(i)); in isSafeAndProfitableToSpeculateAroundPHI() local
213 if (!IncomingC) in isSafeAndProfitableToSpeculateAroundPHI()
220 auto InsertResult = CostsAndCounts.insert({IncomingC, {}}); in isSafeAndProfitableToSpeculateAroundPHI()
228 MatCost = TTI.getIntImmCost(IncomingC->getValue(), IncomingC->getType()); in isSafeAndProfitableToSpeculateAroundPHI()
275 ConstantInt *IncomingC = IncomingConstantAndCostsAndCount.first; in isSafeAndProfitableToSpeculateAroundPHI() local
279 FoldedCost += TTI.getIntImmCost(IID, Idx, IncomingC->getValue(), in isSafeAndProfitableToSpeculateAroundPHI()
280 IncomingC->getType()); in isSafeAndProfitableToSpeculateAroundPHI()
283 TTI.getIntImmCost(UserI->getOpcode(), Idx, IncomingC->getValue(), in isSafeAndProfitableToSpeculateAroundPHI()
284 IncomingC->getType()); in isSafeAndProfitableToSpeculateAroundPHI()
291 LLVM_DEBUG(dbgs() << " Not profitable to fold imm: " << *IncomingC in isSafeAndProfitableToSpeculateAroundPHI()