Lines Matching refs:LT
516 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
518 if (LT.second == MVT::v2i64) in getIntrinsicInstrCost()
519 return LT.first * 2; in getIntrinsicInstrCost()
520 if (any_of(ValidMinMaxTys, [<](MVT M) { return M == LT.second; })) in getIntrinsicInstrCost()
521 return LT.first; in getIntrinsicInstrCost()
531 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
535 LT.second.getScalarSizeInBits() == RetTy->getScalarSizeInBits() ? 1 : 4; in getIntrinsicInstrCost()
536 if (any_of(ValidSatTys, [<](MVT M) { return M == LT.second; })) in getIntrinsicInstrCost()
537 return LT.first * Instrs; in getIntrinsicInstrCost()
544 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
545 if (any_of(ValidAbsTys, [<](MVT M) { return M == LT.second; })) in getIntrinsicInstrCost()
546 return LT.first; in getIntrinsicInstrCost()
552 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
553 if (any_of(ValidAbsTys, [<](MVT M) { return M == LT.second; }) && in getIntrinsicInstrCost()
554 LT.second.getScalarSizeInBits() == RetTy->getScalarSizeInBits()) in getIntrinsicInstrCost()
555 return LT.first; in getIntrinsicInstrCost()
560 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
563 if (LT.first > 1) { in getIntrinsicInstrCost()
564 Type *LegalVTy = EVT(LT.second).getTypeForEVT(RetTy->getContext()); in getIntrinsicInstrCost()
567 Cost += AddCost * (LT.first - 1); in getIntrinsicInstrCost()
614 auto LT = getTypeLegalizationCost(RetTy); in getIntrinsicInstrCost() local
615 MVT MTy = LT.second; in getIntrinsicInstrCost()
623 return LT.first * Entry->Cost + ExtraCost; in getIntrinsicInstrCost()
671 auto LT = getTypeLegalizationCost(ICA.getArgTypes()[0]); in getIntrinsicInstrCost() local
675 if ((LT.second == MVT::f32 || LT.second == MVT::f64 || in getIntrinsicInstrCost()
676 LT.second == MVT::v2f32 || LT.second == MVT::v4f32 || in getIntrinsicInstrCost()
677 LT.second == MVT::v2f64) && in getIntrinsicInstrCost()
678 (LT.second.getScalarSizeInBits() == MTy.getScalarSizeInBits() || in getIntrinsicInstrCost()
679 (LT.second == MVT::f64 && MTy == MVT::i32) || in getIntrinsicInstrCost()
680 (LT.second == MVT::f32 && MTy == MVT::i64))) in getIntrinsicInstrCost()
681 return LT.first; in getIntrinsicInstrCost()
684 ((LT.second == MVT::f16 && MTy == MVT::i32) || in getIntrinsicInstrCost()
685 ((LT.second == MVT::v4f16 || LT.second == MVT::v8f16) && in getIntrinsicInstrCost()
686 (LT.second.getScalarSizeInBits() == MTy.getScalarSizeInBits())))) in getIntrinsicInstrCost()
687 return LT.first; in getIntrinsicInstrCost()
690 if ((LT.second.getScalarType() == MVT::f32 || in getIntrinsicInstrCost()
691 LT.second.getScalarType() == MVT::f64 || in getIntrinsicInstrCost()
692 (ST->hasFullFP16() && LT.second.getScalarType() == MVT::f16)) && in getIntrinsicInstrCost()
693 LT.second.getScalarSizeInBits() >= MTy.getScalarSizeInBits()) { in getIntrinsicInstrCost()
695 Type::getIntNTy(RetTy->getContext(), LT.second.getScalarSizeInBits()); in getIntrinsicInstrCost()
696 if (LT.second.isVector()) in getIntrinsicInstrCost()
697 LegalTy = VectorType::get(LegalTy, LT.second.getVectorElementCount()); in getIntrinsicInstrCost()
705 return LT.first * Cost; in getIntrinsicInstrCost()
2551 std::pair<InstructionCost, MVT> LT = in getCastInstrCost() local
2554 LT.second.getVectorElementType().getSizeInBits(); in getCastInstrCost()
2556 LT.first * in getCastInstrCost()
2707 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(Val); in getVectorInstrCostHelper() local
2710 if (!LT.second.isVector()) in getVectorInstrCostHelper()
2715 if (LT.second.isFixedLengthVector()) { in getVectorInstrCostHelper()
2716 unsigned Width = LT.second.getVectorNumElements(); in getVectorInstrCostHelper()
2792 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(Ty); in getArithmeticInstrCost() local
2838 if (TLI->isOperationLegalOrCustom(ISD, LT.second) && ST->hasSVE()) { in getArithmeticInstrCost()
2859 if (LT.second.getScalarType() == MVT::i8) in getArithmeticInstrCost()
2861 else if (LT.second.getScalarType() == MVT::i16) in getArithmeticInstrCost()
2894 if (LT.second == MVT::v2i64 && ST->hasSVE()) in getArithmeticInstrCost()
2895 return LT.first; in getArithmeticInstrCost()
2909 if (LT.second != MVT::v2i64 || isWideningInstruction(Ty, Opcode, Args)) in getArithmeticInstrCost()
2910 return LT.first; in getArithmeticInstrCost()
2911 return LT.first * 14; in getArithmeticInstrCost()
2921 return LT.first; in getArithmeticInstrCost()
2930 return 2 * LT.first; in getArithmeticInstrCost()
2932 return LT.first; in getArithmeticInstrCost()
2939 return 2 * LT.first; in getArithmeticInstrCost()
3001 auto LT = getTypeLegalizationCost(ValTy); in getCmpSelInstrCost() local
3002 if (any_of(ValidMinMaxTys, [<](MVT M) { return M == LT.second; }) || in getCmpSelInstrCost()
3004 any_of(ValidFP16MinMaxTys, [<](MVT M) { return M == LT.second; }))) in getCmpSelInstrCost()
3005 return LT.first; in getCmpSelInstrCost()
3034 auto LT = getTypeLegalizationCost(ValTy); in getCmpSelInstrCost() local
3036 if (LT.second == MVT::v4f16 && !ST->hasFullFP16()) in getCmpSelInstrCost()
3037 return LT.first * 4; // fcvtl + fcvtl + fcmp + xtn in getCmpSelInstrCost()
3085 auto LT = getTypeLegalizationCost(Src); in getMaskedMemoryOpCost() local
3086 if (!LT.first.isValid()) in getMaskedMemoryOpCost()
3096 return LT.first; in getMaskedMemoryOpCost()
3110 auto LT = getTypeLegalizationCost(DataTy); in getGatherScatterOpCost() local
3111 if (!LT.first.isValid()) in getGatherScatterOpCost()
3114 if (!LT.second.isVector() || in getGatherScatterOpCost()
3126 ElementCount LegalVF = LT.second.getVectorElementCount(); in getGatherScatterOpCost()
3134 return LT.first * MemOpCost * getMaxNumElements(LegalVF); in getGatherScatterOpCost()
3153 auto LT = getTypeLegalizationCost(Ty); in getMemoryOpCost() local
3154 if (!LT.first.isValid()) in getMemoryOpCost()
3167 return LT.first; in getMemoryOpCost()
3173 LT.second.is128BitVector() && (!Alignment || *Alignment < Align(16))) { in getMemoryOpCost()
3181 return LT.first * 2 * AmortizationCost; in getMemoryOpCost()
3186 return LT.first; in getMemoryOpCost()
3190 if (Ty->getScalarSizeInBits() != LT.second.getScalarSizeInBits()) { in getMemoryOpCost()
3202 return LT.first; in getMemoryOpCost()
3206 return LT.first; in getMemoryOpCost()
3231 return LT.first; in getMemoryOpCost()
3543 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(Ty); in getMinMaxReductionCost() local
3545 if (LT.second.getScalarType() == MVT::f16 && !ST->hasFullFP16()) in getMinMaxReductionCost()
3549 if (LT.first > 1) { in getMinMaxReductionCost()
3550 Type *LegalVTy = EVT(LT.second).getTypeForEVT(Ty->getContext()); in getMinMaxReductionCost()
3552 LegalizationCost = getIntrinsicInstrCost(Attrs, CostKind) * (LT.first - 1); in getMinMaxReductionCost()
3560 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy); in getArithmeticReductionCostSVE() local
3562 if (LT.first > 1) { in getArithmeticReductionCostSVE()
3563 Type *LegalVTy = EVT(LT.second).getTypeForEVT(ValTy->getContext()); in getArithmeticReductionCostSVE()
3565 LegalizationCost *= LT.first - 1; in getArithmeticReductionCostSVE()
3609 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy); in getArithmeticReductionCost() local
3610 MVT MTy = LT.second; in getArithmeticReductionCost()
3656 return (LT.first - 1) + Entry->Cost; in getArithmeticReductionCost()
3668 if (LT.first != 1) { in getArithmeticReductionCost()
3674 ExtraCost *= LT.first - 1; in getArithmeticReductionCost()
3709 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(Tp); in getSpliceCost() local
3710 Type *LegalVTy = EVT(LT.second).getTypeForEVT(Tp->getContext()); in getSpliceCost()
3712 EVT PromotedVT = LT.second.getScalarType() == MVT::i1 in getSpliceCost()
3713 ? TLI->getPromotedVTForPredicate(EVT(LT.second)) in getSpliceCost()
3714 : LT.second; in getSpliceCost()
3727 if (LT.second.getScalarType() == MVT::i1) { in getSpliceCost()
3738 return LegalizationCost * LT.first; in getSpliceCost()
3747 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(Tp); in getShuffleCost() local
3750 if (!Mask.empty() && isa<FixedVectorType>(Tp) && LT.second.isVector() && in getShuffleCost()
3751 Tp->getScalarSizeInBits() == LT.second.getScalarSizeInBits() && in getShuffleCost()
3752 Mask.size() > LT.second.getVectorNumElements() && !Index && !SubTp) { in getShuffleCost()
3754 unsigned LTNumElts = LT.second.getVectorNumElements(); in getShuffleCost()
3757 VectorType::get(Tp->getScalarType(), LT.second.getVectorElementCount()); in getShuffleCost()
3822 if (IsLoad && LT.second.isVector() && in getShuffleCost()
3824 LT.second.getVectorElementCount())) in getShuffleCost()
3954 if (const auto *Entry = CostTableLookup(ShuffleTbl, Kind, LT.second)) in getShuffleCost()
3955 return LT.first * Entry->Cost; in getShuffleCost()
3963 if (Kind == TTI::SK_InsertSubvector && LT.second.isFixedLengthVector() && in getShuffleCost()
3964 LT.second.getSizeInBits() <= 128 && SubTp) { in getShuffleCost()
3967 int NumElts = LT.second.getVectorNumElements(); in getShuffleCost()