[llvm] bf1ba6b - [VPlan] Replace VPScalarIVStepsRecipe::classof with VP_CLASSOF_IMPL(NFC)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 17 12:53:33 PST 2023
Author: Florian Hahn
Date: 2023-01-17T20:53:14Z
New Revision: bf1ba6bb52082c41486826cb4ab9514b3204eac0
URL: https://github.com/llvm/llvm-project/commit/bf1ba6bb52082c41486826cb4ab9514b3204eac0
DIFF: https://github.com/llvm/llvm-project/commit/bf1ba6bb52082c41486826cb4ab9514b3204eac0.diff
LOG: [VPlan] Replace VPScalarIVStepsRecipe::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 3283ef0863d36..84a7cfbaa1fc4 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -1920,19 +1920,7 @@ class VPScalarIVStepsRecipe : public VPRecipeBase, public VPValue {
~VPScalarIVStepsRecipe() override = default;
- /// Method to support type inquiry through isa, cast, and dyn_cast.
- static inline bool classof(const VPDef *D) {
- return D->getVPDefID() == VPDef::VPScalarIVStepsSC;
- }
- /// Extra classof implementations to allow directly casting from VPUser ->
- /// VPScalarIVStepsRecipe.
- static inline bool classof(const VPUser *U) {
- auto *R = dyn_cast<VPRecipeBase>(U);
- return R && R->getVPDefID() == VPDef::VPScalarIVStepsSC;
- }
- static inline bool classof(const VPRecipeBase *R) {
- return R->getVPDefID() == VPDef::VPScalarIVStepsSC;
- }
+ VP_CLASSOF_IMPL(VPDef::VPScalarIVStepsSC)
/// Generate the scalarized versions of the phi node as needed by their users.
void execute(VPTransformState &State) override;
More information about the llvm-commits
mailing list