[llvm] [VPlan] Move call widening decision to VPlan. (NFCI) (PR #195518)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed May 6 02:37:47 PDT 2026
================
@@ -1855,6 +1856,11 @@ void VPWidenCallRecipe::execute(VPTransformState &State) {
InstructionCost VPWidenCallRecipe::computeCost(ElementCount VF,
VPCostContext &Ctx) const {
+ return computeVectorCallCost(Variant, Ctx);
+}
+
+InstructionCost VPWidenCallRecipe::computeVectorCallCost(Function *Variant,
+ VPCostContext &Ctx) {
----------------
fhahn wrote:
yes the variant must have the correct type, added an assert in the caller above, thanks
https://github.com/llvm/llvm-project/pull/195518
More information about the llvm-commits
mailing list