[VPlan] Replace VPExpandSCEVRecipe::classof with VP_CLASSOF_IMPL. (NFC)
authorFlorian Hahn <flo@fhahn.com>
Tue, 17 Jan 2023 21:11:32 +0000 (21:11 +0000)
committerFlorian Hahn <flo@fhahn.com>
Tue, 17 Jan 2023 21:11:33 +0000 (21:11 +0000)
llvm/lib/Transforms/Vectorize/VPlan.h

index 84a7cfb..36702d0 100644 (file)
@@ -1742,10 +1742,7 @@ public:
 
   ~VPExpandSCEVRecipe() override = default;
 
-  /// Method to support type inquiry through isa, cast, and dyn_cast.
-  static inline bool classof(const VPDef *D) {
-    return D->getVPDefID() == VPExpandSCEVSC;
-  }
+  VP_CLASSOF_IMPL(VPDef::VPExpandSCEVSC)
 
   /// Generate a canonical vector induction variable of the vector loop, with
   void execute(VPTransformState &State) override;