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

Elvis Wang via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 06:13:23 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); }
----------------
ElvisWang123 wrote:

Thanks, I will directly use the `getLoadStoreType`.


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


More information about the llvm-commits mailing list