Lines Matching defs:Cost
373 InstructionCost Cost = 0;
377 Cost += getIntImmCost(Val);
380 return std::max<InstructionCost>(1, Cost);
443 InstructionCost Cost = AArch64TTIImpl::getIntImmCost(Imm, Ty, CostKind);
444 return (Cost <= NumConstants * TTI::TCC_Basic)
446 : Cost;
480 InstructionCost Cost = AArch64TTIImpl::getIntImmCost(Imm, Ty, CostKind);
481 return (Cost <= NumConstants * TTI::TCC_Basic)
483 : Cost;
609 InstructionCost Cost = 1; // Cost of the `index' instruction
617 Cost += AddCost * (LT.first - 1);
619 return Cost;
671 // Cost Model is using the legal type(i32) that i8 and i16 will be
675 return LegalisationCost.first * Entry->Cost + 1;
677 return LegalisationCost.first * Entry->Cost;
706 return LT.first * Entry->Cost + ExtraCost;
746 return Entry->Cost;
781 InstructionCost Cost = 1;
784 Cost += getIntrinsicInstrCost(Attrs1, CostKind);
787 Cost += getIntrinsicInstrCost(Attrs2, CostKind);
788 return LT.first * Cost;
815 return LegalisationCost.first * Entry->Cost;
2508 auto AdjustCost = [&CostKind](InstructionCost Cost) -> InstructionCost {
2510 return Cost == 0 ? 0 : 1;
2511 return Cost;
2814 return AdjustCost(Entry->Cost);
2844 return AdjustCost(Entry->Cost);
2896 InstructionCost Cost = getVectorInstrCost(Instruction::ExtractElement, VecTy,
2908 return Cost + getCastInstrCost(Opcode, Dst, Src, TTI::CastContextHint::None,
2914 return Cost + getCastInstrCost(Opcode, Dst, Src, TTI::CastContextHint::None,
2924 return Cost;
2930 return Cost;
2934 return Cost + getCastInstrCost(Opcode, Dst, Src, TTI::CastContextHint::None,
3062 InstructionCost Cost = getArithmeticInstrCost(
3065 Cost += getArithmeticInstrCost(Instruction::Sub, Ty, CostKind,
3067 Cost += getArithmeticInstrCost(
3070 Cost += getArithmeticInstrCost(Instruction::AShr, Ty, CostKind,
3072 return Cost;
3092 InstructionCost Cost = BaseT::getArithmeticInstrCost(
3112 return Entry->Cost;
3117 Cost *= 8;
3119 Cost *= 4;
3120 return Cost;
3123 // element is Cost for insertion, extraction and division.
3124 // Insertion cost = 2, Extraction Cost = 2, Division = cost for the
3136 Cost += getArithmeticInstrCost(Instruction::ExtractElement, Ty,
3138 Cost += getArithmeticInstrCost(Instruction::InsertElement, Ty, CostKind,
3144 Cost += Cost;
3146 return Cost;
3293 return Entry->Cost;
3299 // Cost v4f16 FCmp without FP16 support via converting to v4f32 and back.
3486 InstructionCost Cost(0);
3493 Cost += 1;
3502 return Cost;
3545 InstructionCost Cost = 0;
3552 Cost += getMemoryOpCost(Instruction::Store, I, Align(128), 0, CostKind) +
3555 return Cost;
3837 return LegalizationCost + /*Cost of horizontal reduction*/ 2;
3890 InstructionCost Cost =
3892 Cost *= getMaxNumElements(VTy->getElementCount());
3893 return Cost;
3946 return (LT.first - 1) + Entry->Cost;
3967 auto Cost = ValVTy->getElementType()->isIntegerTy(1) ? 2 : Entry->Cost;
3968 return Cost + ExtraCost;
4016 // Cost performed on a promoted type.
4027 LegalizationCost += Entry->Cost;
4068 InstructionCost Cost;
4108 Cost += getShuffleCost(NumSources <= 1 ? TTI::SK_PermuteSingleSrc
4114 Cost += LTNumElts - 1;
4116 Cost += LTNumElts;
4118 return Cost;
4290 return LT.first * Entry->Cost;