[llvm] cdd8fcd - [VPlan] Replace VPExpandSCEVRecipe::classof with VP_CLASSOF_IMPL. (NFC)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 17 13:12:13 PST 2023


Author: Florian Hahn
Date: 2023-01-17T21:11:33Z
New Revision: cdd8fcdbd7a1479ba351895aec097ea6529697b8

URL: https://github.com/llvm/llvm-project/commit/cdd8fcdbd7a1479ba351895aec097ea6529697b8
DIFF: https://github.com/llvm/llvm-project/commit/cdd8fcdbd7a1479ba351895aec097ea6529697b8.diff

LOG: [VPlan] Replace VPExpandSCEVRecipe::classof with VP_CLASSOF_IMPL. (NFC)

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlan.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index 84a7cfbaa1fc..36702d0a86c2 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -1742,10 +1742,7 @@ class VPExpandSCEVRecipe : public VPRecipeBase, public VPValue {
 
   ~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;


        


More information about the llvm-commits mailing list