Skip to content

Commit b2d3cb1

Browse files
authored
[TTI][RISCV] Remove deduplicate type-based VP costing of VPReduction.NFC (#117708)
Refered to: #115983
1 parent d714b22 commit b2d3cb1

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,37 +1144,6 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
11441144
: RISCV::VMV_V_X,
11451145
LT.second, CostKind);
11461146
}
1147-
case Intrinsic::vp_reduce_add:
1148-
case Intrinsic::vp_reduce_fadd:
1149-
case Intrinsic::vp_reduce_mul:
1150-
case Intrinsic::vp_reduce_fmul:
1151-
case Intrinsic::vp_reduce_and:
1152-
case Intrinsic::vp_reduce_or:
1153-
case Intrinsic::vp_reduce_xor: {
1154-
std::optional<Intrinsic::ID> RedID =
1155-
VPIntrinsic::getFunctionalIntrinsicIDForVP(ICA.getID());
1156-
assert(RedID.has_value());
1157-
unsigned RedOp = getArithmeticReductionInstruction(*RedID);
1158-
return getArithmeticReductionCost(RedOp,
1159-
cast<VectorType>(ICA.getArgTypes()[1]),
1160-
ICA.getFlags(), CostKind);
1161-
}
1162-
case Intrinsic::vp_reduce_smax:
1163-
case Intrinsic::vp_reduce_smin:
1164-
case Intrinsic::vp_reduce_umax:
1165-
case Intrinsic::vp_reduce_umin:
1166-
case Intrinsic::vp_reduce_fmax:
1167-
case Intrinsic::vp_reduce_fmaximum:
1168-
case Intrinsic::vp_reduce_fmin:
1169-
case Intrinsic::vp_reduce_fminimum: {
1170-
std::optional<Intrinsic::ID> RedID =
1171-
VPIntrinsic::getFunctionalIntrinsicIDForVP(ICA.getID());
1172-
assert(RedID.has_value());
1173-
Intrinsic::ID MinMaxID = getMinMaxReductionIntrinsicOp(*RedID);
1174-
return getMinMaxReductionCost(MinMaxID,
1175-
cast<VectorType>(ICA.getArgTypes()[1]),
1176-
ICA.getFlags(), CostKind);
1177-
}
11781147
}
11791148

11801149
if (ST->hasVInstructions() && RetTy->isVectorTy()) {

0 commit comments

Comments
 (0)