[llvm] 2d6d47f - [VPlan] Use VP_CLASSOF_IMPL for VPPredInstPHI (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 2 09:22:52 PST 2023
Author: Florian Hahn
Date: 2023-01-02T17:22:34Z
New Revision: 2d6d47f807b1a2c3752be3377564926db872ab22
URL: https://github.com/llvm/llvm-project/commit/2d6d47f807b1a2c3752be3377564926db872ab22
DIFF: https://github.com/llvm/llvm-project/commit/2d6d47f807b1a2c3752be3377564926db872ab22.diff
LOG: [VPlan] Use VP_CLASSOF_IMPL for VPPredInstPHI (NFC).
Replace VPPredInstPHI::classof implementation with general
VP_CLASSOF_IMPL.
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 b2df19e48533..a535ed67de52 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -1638,10 +1638,7 @@ class VPPredInstPHIRecipe : public VPRecipeBase, public VPValue {
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;
More information about the llvm-commits
mailing list