Lines Matching refs:Cost
364 InstructionCost Cost = 0; in getIntImmCost() local
368 Cost += getIntImmCost(Val); in getIntImmCost()
371 return std::max<InstructionCost>(1, Cost); in getIntImmCost()
434 InstructionCost Cost = AArch64TTIImpl::getIntImmCost(Imm, Ty, CostKind); in getIntImmCostInst() local
435 return (Cost <= NumConstants * TTI::TCC_Basic) in getIntImmCostInst()
437 : Cost; in getIntImmCostInst()
471 InstructionCost Cost = AArch64TTIImpl::getIntImmCost(Imm, Ty, CostKind); in getIntImmCostIntrin() local
472 return (Cost <= NumConstants * TTI::TCC_Basic) in getIntImmCostIntrin()
474 : Cost; in getIntImmCostIntrin()
559 InstructionCost Cost = 1; // Cost of the `index' instruction in getIntrinsicInstrCost() local
567 Cost += AddCost * (LT.first - 1); in getIntrinsicInstrCost()
569 return Cost; in getIntrinsicInstrCost()
592 return LegalisationCost.first * Entry->Cost + 1; in getIntrinsicInstrCost()
594 return LegalisationCost.first * Entry->Cost; in getIntrinsicInstrCost()
623 return LT.first * Entry->Cost + ExtraCost; in getIntrinsicInstrCost()
663 return Entry->Cost; in getIntrinsicInstrCost()
698 InstructionCost Cost = 1; in getIntrinsicInstrCost() local
701 Cost += getIntrinsicInstrCost(Attrs1, CostKind); in getIntrinsicInstrCost()
704 Cost += getIntrinsicInstrCost(Attrs2, CostKind); in getIntrinsicInstrCost()
705 return LT.first * Cost; in getIntrinsicInstrCost()
732 return LegalisationCost.first * Entry->Cost; in getIntrinsicInstrCost()
2260 auto AdjustCost = [&CostKind](InstructionCost Cost) -> InstructionCost { in getCastInstrCost() argument
2262 return Cost == 0 ? 0 : 1; in getCastInstrCost()
2263 return Cost; in getCastInstrCost()
2566 return AdjustCost(Entry->Cost); in getCastInstrCost()
2596 return AdjustCost(Entry->Cost); in getCastInstrCost()
2647 InstructionCost Cost = getVectorInstrCost(Instruction::ExtractElement, VecTy, in getExtractWithExtendCost() local
2659 return Cost + getCastInstrCost(Opcode, Dst, Src, TTI::CastContextHint::None, in getExtractWithExtendCost()
2665 return Cost + getCastInstrCost(Opcode, Dst, Src, TTI::CastContextHint::None, in getExtractWithExtendCost()
2675 return Cost; in getExtractWithExtendCost()
2681 return Cost; in getExtractWithExtendCost()
2685 return Cost + getCastInstrCost(Opcode, Dst, Src, TTI::CastContextHint::None, in getExtractWithExtendCost()
2805 InstructionCost Cost = getArithmeticInstrCost( in getArithmeticInstrCost() local
2808 Cost += getArithmeticInstrCost(Instruction::Sub, Ty, CostKind, in getArithmeticInstrCost()
2810 Cost += getArithmeticInstrCost( in getArithmeticInstrCost()
2813 Cost += getArithmeticInstrCost(Instruction::AShr, Ty, CostKind, in getArithmeticInstrCost()
2815 return Cost; in getArithmeticInstrCost()
2835 InstructionCost Cost = BaseT::getArithmeticInstrCost( in getArithmeticInstrCost() local
2855 return Entry->Cost; in getArithmeticInstrCost()
2860 Cost *= 8; in getArithmeticInstrCost()
2862 Cost *= 4; in getArithmeticInstrCost()
2863 return Cost; in getArithmeticInstrCost()
2879 Cost += getArithmeticInstrCost(Instruction::ExtractElement, Ty, in getArithmeticInstrCost()
2881 Cost += getArithmeticInstrCost(Instruction::InsertElement, Ty, CostKind, in getArithmeticInstrCost()
2887 Cost += Cost; in getArithmeticInstrCost()
2889 return Cost; in getArithmeticInstrCost()
3029 return Entry->Cost; in getCmpSelInstrCost()
3212 InstructionCost Cost(0); in getMemoryOpCost() local
3219 Cost += 1; in getMemoryOpCost()
3228 return Cost; in getMemoryOpCost()
3271 InstructionCost Cost = 0; in getCostOfKeepingLiveOverCall() local
3278 Cost += getMemoryOpCost(Instruction::Store, I, Align(128), 0, CostKind) + in getCostOfKeepingLiveOverCall()
3281 return Cost; in getCostOfKeepingLiveOverCall()
3600 InstructionCost Cost = in getArithmeticReductionCost() local
3602 Cost *= getMaxNumElements(VTy->getElementCount()); in getArithmeticReductionCost()
3603 return Cost; in getArithmeticReductionCost()
3656 return (LT.first - 1) + Entry->Cost; in getArithmeticReductionCost()
3677 auto Cost = ValVTy->getElementType()->isIntegerTy(1) ? 2 : Entry->Cost; in getArithmeticReductionCost() local
3678 return Cost + ExtraCost; in getArithmeticReductionCost()
3737 LegalizationCost += Entry->Cost; in getSpliceCost()
3758 InstructionCost Cost; in getShuffleCost() local
3798 Cost += getShuffleCost(NumSources <= 1 ? TTI::SK_PermuteSingleSrc in getShuffleCost()
3804 Cost += LTNumElts - 1; in getShuffleCost()
3806 Cost += LTNumElts; in getShuffleCost()
3808 return Cost; in getShuffleCost()
3955 return LT.first * Entry->Cost; in getShuffleCost()