[llvm] f615de7 - [VPlan] Replace VPBranchOnMaskSC::classof with VP_CLASSOF_IMPL. (NFC)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 18 04:15:20 PST 2023


Author: Florian Hahn
Date: 2023-01-18T12:14:58Z
New Revision: f615de7e266813518237b7d5b24ac53d1eec6b3c

URL: https://github.com/llvm/llvm-project/commit/f615de7e266813518237b7d5b24ac53d1eec6b3c
DIFF: https://github.com/llvm/llvm-project/commit/f615de7e266813518237b7d5b24ac53d1eec6b3c.diff

LOG: [VPlan] Replace VPBranchOnMaskSC::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 36702d0a86c20..69eaf575851ac 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -1563,10 +1563,7 @@ class VPBranchOnMaskRecipe : public VPRecipeBase {
       addOperand(BlockInMask);
   }
 
-  /// Method to support type inquiry through isa, cast, and dyn_cast.
-  static inline bool classof(const VPDef *D) {
-    return D->getVPDefID() == VPDef::VPBranchOnMaskSC;
-  }
+  VP_CLASSOF_IMPL(VPDef::VPBranchOnMaskSC)
 
   /// Generate the extraction of the appropriate bit from the block mask and the
   /// conditional branch.


        


More information about the llvm-commits mailing list