[llvm] [VPlan] Add cost for `VPWidenMemoryRecipe` (PR #105614)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 26 02:18:12 PDT 2024
================
@@ -2529,6 +2529,13 @@ class VPWidenMemoryRecipe : public VPRecipeBase {
llvm_unreachable("VPWidenMemoryRecipe should not be instantiated.");
}
+ /// Get element Type
+ Type *getElementType() const { return getLoadStoreType(&Ingredient); }
----------------
fhahn wrote:
Simpler to just use `getLoadStoreType` directly in `::computeCost`, like other `getLoadStoreXXX` helpers there?
https://github.com/llvm/llvm-project/pull/105614
More information about the llvm-commits
mailing list