[llvm] [VPlan] Add cost for `VPWidenMemoryRecipe` (PR #105614)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 02:18:13 PDT 2024


================
@@ -2084,6 +2084,37 @@ void VPPredInstPHIRecipe::print(raw_ostream &O, const Twine &Indent,
 }
 #endif
 
+InstructionCost VPWidenMemoryRecipe::computeCost(ElementCount VF,
+                                                 VPCostContext &Ctx) const {
+  Instruction *I = getInstructionForCost(this);
----------------
fhahn wrote:

This should probably use `Ingredient`

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


More information about the llvm-commits mailing list