Lines Matching refs:Cost
483 auto AdjustCost = [&CostKind](InstructionCost Cost) -> InstructionCost { in getCastInstrCost() argument
485 return Cost == 0 ? 0 : 1; in getCastInstrCost()
486 return Cost; in getCastInstrCost()
534 return AdjustCost(Entry->Cost); in getCastInstrCost()
557 return Entry->Cost * ST->getMVEVectorCostFactor(CostKind); in getCastInstrCost()
569 return Entry->Cost * ST->getMVEVectorCostFactor(CostKind); in getCastInstrCost()
586 return Entry->Cost * ST->getMVEVectorCostFactor(CostKind); in getCastInstrCost()
597 return Entry->Cost * ST->getMVEVectorCostFactor(CostKind); in getCastInstrCost()
624 return AdjustCost(Entry->Cost); in getCastInstrCost()
642 return AdjustCost(LT.first * Entry->Cost); in getCastInstrCost()
735 return AdjustCost(Entry->Cost); in getCastInstrCost()
765 return AdjustCost(Entry->Cost); in getCastInstrCost()
796 return AdjustCost(Entry->Cost); in getCastInstrCost()
821 return Entry->Cost * ST->getMVEVectorCostFactor(CostKind); in getCastInstrCost()
868 return AdjustCost(Entry->Cost); in getCastInstrCost()
935 InstructionCost Cost = getTypeLegalizationCost(ValTy).first; in getCmpSelInstrCost() local
938 ++Cost; in getCmpSelInstrCost()
943 ++Cost; in getCmpSelInstrCost()
945 return Cost; in getCmpSelInstrCost()
1009 return Entry->Cost; in getCmpSelInstrCost()
1236 return LT.first * Entry->Cost; in getShuffleCost()
1257 return LT.first * Entry->Cost; in getShuffleCost()
1281 return LT.first * Entry->Cost; in getShuffleCost()
1297 return LT.first * Entry->Cost * in getShuffleCost()
1386 return LT.first * Entry->Cost; in getArithmeticInstrCost()
1388 InstructionCost Cost = BaseT::getArithmeticInstrCost( in getArithmeticInstrCost() local
1399 Cost += 4; in getArithmeticInstrCost()
1401 return Cost; in getArithmeticInstrCost()
1447 InstructionCost Cost = in getArithmeticInstrCost() local
1453 Num * Cost; in getArithmeticInstrCost()
1750 return Entry->Cost * ST->getMVEVectorCostFactor(CostKind) * LT.first; in getArithmeticReductionCost()
1870 return Entry->Cost * ST->getMVEVectorCostFactor(CostKind) * LT.first; in getMinMaxReductionCost()
1963 InstructionCost Cost = in getIntrinsicInstrCost() local
1968 Cost += getIntrinsicInstrCost(Attrs1, CostKind); in getIntrinsicInstrCost()
1972 Cost += getIntrinsicInstrCost(Attrs2, CostKind); in getIntrinsicInstrCost()
1973 return LT.first * Cost; in getIntrinsicInstrCost()
2475 InstructionCost Cost = 0; in getUnrollingPreferences() local
2492 Cost += getInstructionCost(&I, Operands, in getUnrollingPreferences()
2523 LLVM_DEBUG(dbgs() << "Cost of loop: " << Cost << "\n"); in getUnrollingPreferences()
2535 if (Cost < 12) in getUnrollingPreferences()