Lines Matching refs:Cost
371 InstructionCost Cost; in collectConstantCandidates() local
375 Cost = TTI->getIntImmCostIntrin(IntrInst->getIntrinsicID(), Idx, in collectConstantCandidates()
379 Cost = TTI->getIntImmCostInst( in collectConstantCandidates()
384 if (Cost > TargetTransformInfo::TCC_Basic) { in collectConstantCandidates()
393 ConstIntCandVec[Itr->second].addUser(Inst, Idx, *Cost.getValue()); in collectConstantCandidates()
396 << " with cost " << Cost << '\n'; in collectConstantCandidates()
399 << *Inst->getOperand(Idx) << " with cost " << Cost in collectConstantCandidates()
439 InstructionCost Cost = in collectConstantCandidates() local
453 ExprCandVec[Itr->second].addUser(Inst, Idx, *Cost.getValue()); in collectConstantCandidates()
598 InstructionCost Cost = 0; in maximizeConstantsInRange() local
606 Cost += TTI->getIntImmCostInst(Opcode, OpndIdx, Value, Ty, in maximizeConstantsInRange()
608 LLVM_DEBUG(dbgs() << "Cost: " << Cost << "\n"); in maximizeConstantsInRange()
616 Cost -= ImmCosts; in maximizeConstantsInRange()
619 << "Adjusted cost: " << Cost << "\n"); in maximizeConstantsInRange()
623 LLVM_DEBUG(dbgs() << "Cumulative cost: " << Cost << "\n"); in maximizeConstantsInRange()
624 if (Cost > MaxCost) { in maximizeConstantsInRange()
625 MaxCost = Cost; in maximizeConstantsInRange()