[llvm] [VPlan] Remove legacy costing inside VPBlendRecipe::computeCost (PR #171846)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 11 16:59:42 PST 2025
================
@@ -2551,11 +2551,6 @@ void VPVectorPointerRecipe::printRecipe(raw_ostream &O, const Twine &Indent,
InstructionCost VPBlendRecipe::computeCost(ElementCount VF,
VPCostContext &Ctx) const {
- // Handle cases where only the first lane is used the same way as the legacy
- // cost model.
- if (vputils::onlyFirstLaneUsed(this))
----------------
lukel97 wrote:
That crossed my mind too but it looks like toVectorTy already returns the scalar type in the case where VF=1, so I think it works already
https://github.com/llvm/llvm-project/pull/171846
More information about the llvm-commits
mailing list