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