[llvm] 64f1d84 - [VPlan] Use VP_CLASSOF_IMPL for VPWidenMemoryInstructionRecipe (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 2 09:32:48 PST 2023
Author: Florian Hahn
Date: 2023-01-02T17:32:31Z
New Revision: 64f1d845b3823b0a9e0b0344416f9032d38bde9c
URL: https://github.com/llvm/llvm-project/commit/64f1d845b3823b0a9e0b0344416f9032d38bde9c
DIFF: https://github.com/llvm/llvm-project/commit/64f1d845b3823b0a9e0b0344416f9032d38bde9c.diff
LOG: [VPlan] Use VP_CLASSOF_IMPL for VPWidenMemoryInstructionRecipe (NFC).
Replace VPWidenMemoryInstructionRecipe ::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 a535ed67de52..9d38b4d7e344 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -1701,10 +1701,8 @@ class VPWidenMemoryInstructionRecipe : public VPRecipeBase {
setMask(Mask);
}
- /// Method to support type inquiry through isa, cast, and dyn_cast.
- static inline bool classof(const VPDef *D) {
- return D->getVPDefID() == VPRecipeBase::VPWidenMemoryInstructionSC;
- }
+ VP_CLASSOF_IMPL(VPRecipeBase::VPWidenMemoryInstructionSC,
+ VPValue::VPVMemoryInstructionSC)
/// Return the address accessed by this recipe.
VPValue *getAddr() const {
More information about the llvm-commits
mailing list