[llvm] [VPlan] Compute cost for most opcodes in VPWidenRecipe (NFCI). (PR #98764)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 09:40:57 PDT 2024


================
@@ -862,7 +864,8 @@ class VPRecipeBase : public ilist_node_with_parent<VPRecipeBase, VPBasicBlock>,
 protected:
   /// Compute the cost of this recipe using the legacy cost model and the
   /// underlying instructions.
-  InstructionCost computeCost(ElementCount VF, VPCostContext &Ctx) const;
+  virtual InstructionCost computeCost(ElementCount VF,
+                                      VPCostContext &Ctx) const;
----------------
fhahn wrote:

Adjusted the comment, thanks!

https://github.com/llvm/llvm-project/pull/98764


More information about the llvm-commits mailing list