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

llvm/lib/Transforms/Vectorize/VPlan.h

index b2df19e..a535ed6 100644 (file)
@@ -1638,10 +1638,7 @@ public:
         VPValue(VPValue::VPVPredInstPHI, nullptr, this) {}
   ~VPPredInstPHIRecipe() override = default;
 
-  /// Method to support type inquiry through isa, cast, and dyn_cast.
-  static inline bool classof(const VPDef *D) {
-    return D->getVPDefID() == VPRecipeBase::VPPredInstPHISC;
-  }
+  VP_CLASSOF_IMPL(VPRecipeBase::VPPredInstPHISC, VPValue::VPVPredInstPHI)
 
   /// Generates phi nodes for live-outs as needed to retain SSA form.
   void execute(VPTransformState &State) override;