[VPlan] Use VP_CLASSOF_IMPL for VPWidenMemoryInstructionRecipe (NFC).
authorFlorian Hahn <flo@fhahn.com>
Mon, 2 Jan 2023 17:32:31 +0000 (17:32 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 2 Jan 2023 17:32:31 +0000 (17:32 +0000)
Replace VPWidenMemoryInstructionRecipe ::classof implementation with general
VP_CLASSOF_IMPL.

llvm/lib/Transforms/Vectorize/VPlan.h

index a535ed6..9d38b4d 100644 (file)
@@ -1701,10 +1701,8 @@ public:
     setMask(Mask);
   }
 
-  /// Method to support type inquiry through isa, cast, and dyn_cast.
-  static inline bool classof(const VPDef *D) {
-    return D->getVPDefID() == VPRecipeBase::VPWidenMemoryInstructionSC;
-  }
+  VP_CLASSOF_IMPL(VPRecipeBase::VPWidenMemoryInstructionSC,
+                  VPValue::VPVMemoryInstructionSC)
 
   /// Return the address accessed by this recipe.
   VPValue *getAddr() const {