Lines Matching refs:Cost
366 InstructionCost Cost; in collectConstantCandidates() local
370 Cost = TTI->getIntImmCostIntrin(IntrInst->getIntrinsicID(), Idx, in collectConstantCandidates()
374 Cost = TTI->getIntImmCostInst( in collectConstantCandidates()
379 if (Cost > TargetTransformInfo::TCC_Basic) { in collectConstantCandidates()
388 ConstIntCandVec[Itr->second].addUser(Inst, Idx, *Cost.getValue()); in collectConstantCandidates()
391 << " with cost " << Cost << '\n'; in collectConstantCandidates()
394 << *Inst->getOperand(Idx) << " with cost " << Cost in collectConstantCandidates()
434 InstructionCost Cost = in collectConstantCandidates() local
448 ExprCandVec[Itr->second].addUser(Inst, Idx, *Cost.getValue()); in collectConstantCandidates()
593 InstructionCost Cost = 0; in maximizeConstantsInRange() local
601 Cost += TTI->getIntImmCostInst(Opcode, OpndIdx, Value, Ty, in maximizeConstantsInRange()
603 LLVM_DEBUG(dbgs() << "Cost: " << Cost << "\n"); in maximizeConstantsInRange()
611 Cost -= ImmCosts; in maximizeConstantsInRange()
614 << "Adjusted cost: " << Cost << "\n"); in maximizeConstantsInRange()
618 LLVM_DEBUG(dbgs() << "Cumulative cost: " << Cost << "\n"); in maximizeConstantsInRange()
619 if (Cost > MaxCost) { in maximizeConstantsInRange()
620 MaxCost = Cost; in maximizeConstantsInRange()