[llvm] [RISCV] Add cost for @llvm.experimental.vp.splat (PR #117313)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 22 08:42:51 PST 2024
================
@@ -1155,6 +1155,11 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
return getCmpSelInstrCost(Instruction::Select, ICA.getReturnType(),
ICA.getArgTypes()[0], CmpInst::BAD_ICMP_PREDICATE,
CostKind);
+ case Intrinsic::experimental_vp_splat: {
+ auto LT = getTypeLegalizationCost(RetTy);
----------------
preames wrote:
As a follow up, can you add handling for fixed vectors (only) in BasicTTI via getShuffleCost? We should be modeling the scalarization here.
https://github.com/llvm/llvm-project/pull/117313
More information about the llvm-commits
mailing list