[llvm] [VPlan] Fix classof() in VPWiden{Load|Store}Recipe NFC. (PR #119691)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 12 05:58:12 PST 2024


================
@@ -2966,7 +2966,15 @@ struct VPWidenLoadRecipe final : public VPWidenMemoryRecipe, public VPValue {
                                  getDebugLoc());
   }
 
-  VP_CLASSOF_IMPL(VPDef::VPWidenLoadSC);
+  static inline bool classof(const VPRecipeBase *R) {
----------------
david-arm wrote:

Oh ok, it's just both VPWidenLoadRecipe and VPWidenLoadEVLRecipe have a common parent so I was wondering why we can't just do: `isa<VPWidenMemoryRecipe>(VPWidenLoadEVLRecipe)`?

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


More information about the llvm-commits mailing list