[llvm] 22c9f4c - [VPlan] Replace VPInterleaveRecipe::classof with VP_CLASSOF_IMPL. (NFC)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 18 06:24:26 PST 2023
Author: Florian Hahn
Date: 2023-01-18T14:23:22Z
New Revision: 22c9f4cf2dc2c288ee6d70cf6349e4877292673a
URL: https://github.com/llvm/llvm-project/commit/22c9f4cf2dc2c288ee6d70cf6349e4877292673a
DIFF: https://github.com/llvm/llvm-project/commit/22c9f4cf2dc2c288ee6d70cf6349e4877292673a.diff
LOG: [VPlan] Replace VPInterleaveRecipe::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 69eaf575851a..07f660900588 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -1396,9 +1396,7 @@ class VPInterleaveRecipe : public VPRecipeBase {
}
~VPInterleaveRecipe() override = default;
- static inline bool classof(const VPDef *D) {
- return D->getVPDefID() == VPDef::VPInterleaveSC;
- }
+ VP_CLASSOF_IMPL(VPDef::VPInterleaveSC)
/// Return the address accessed by this recipe.
VPValue *getAddr() const {
More information about the llvm-commits
mailing list