From: Florian Hahn Date: Mon, 2 Jan 2023 17:22:34 +0000 (+0000) Subject: [VPlan] Use VP_CLASSOF_IMPL for VPPredInstPHI (NFC). X-Git-Tag: upstream/17.0.6~22372 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d6d47f807b1a2c3752be3377564926db872ab22;p=platform%2Fupstream%2Fllvm.git [VPlan] Use VP_CLASSOF_IMPL for VPPredInstPHI (NFC). Replace VPPredInstPHI::classof implementation with general VP_CLASSOF_IMPL. --- diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h index b2df19e..a535ed6 100644 --- a/llvm/lib/Transforms/Vectorize/VPlan.h +++ b/llvm/lib/Transforms/Vectorize/VPlan.h @@ -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;