[llvm] [VPlan] Move FOR splice cost into VPInstruction::FirstOrderRecurrenceSplice (PR #129645)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 13 05:11:13 PDT 2025
================
@@ -754,6 +754,17 @@ InstructionCost VPInstruction::computeCost(ElementCount VF,
return Cost + Ctx.TTI.getVectorInstrCost(Instruction::ExtractElement, VecTy,
Ctx.CostKind);
}
+ case VPInstruction::FirstOrderRecurrenceSplice: {
+ assert(VF.isVector() && "Scalar FirstOrderRecurrenceSplice?");
+ SmallVector<int> Mask(VF.getKnownMinValue());
+ std::iota(Mask.begin(), Mask.end(), VF.getKnownMinValue() - 1);
+ Type *VectorTy =
+ toVectorTy(Ctx.Types.inferScalarType(this->getVPSingleValue()), VF);
----------------
lukel97 wrote:
Looks like it's not, I've removed it
https://github.com/llvm/llvm-project/pull/129645
More information about the llvm-commits
mailing list