[VPlan] Replace VPInterleaveRecipe::classof with VP_CLASSOF_IMPL. (NFC)
authorFlorian Hahn <flo@fhahn.com>
Wed, 18 Jan 2023 14:23:22 +0000 (14:23 +0000)
committerFlorian Hahn <flo@fhahn.com>
Wed, 18 Jan 2023 14:23:22 +0000 (14:23 +0000)
llvm/lib/Transforms/Vectorize/VPlan.h

index 69eaf57..07f6609 100644 (file)
@@ -1396,9 +1396,7 @@ public:
   }
   ~VPInterleaveRecipe() override = default;
 
-  static inline bool classof(const VPDef *D) {
-    return D->getVPDefID() == VPDef::VPInterleaveSC;
-  }
+  VP_CLASSOF_IMPL(VPDef::VPInterleaveSC)
 
   /// Return the address accessed by this recipe.
   VPValue *getAddr() const {