[llvm] [VPlan] Implement VPWidenLoad/StoreEVLRecipe::computeCost(). (PR #109644)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 25 06:26:21 PDT 2024
================
@@ -2364,6 +2364,32 @@ void VPWidenLoadEVLRecipe::execute(VPTransformState &State) {
State.set(this, Res, 0);
}
+InstructionCost VPWidenLoadEVLRecipe::computeCost(ElementCount VF,
+ VPCostContext &Ctx) const {
+ if (!Consecutive || IsMasked) {
+ return VPWidenMemoryRecipe::computeCost(VF, Ctx);
+ }
----------------
fhahn wrote:
```suggestion
if (!Consecutive || IsMasked)
return VPWidenMemoryRecipe::computeCost(VF, Ctx);
```
https://github.com/llvm/llvm-project/pull/109644
More information about the llvm-commits
mailing list