[llvm] 54fdf67 - [VPlan] Mark getPredicatedMask static (NFC) (#168067)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 17 00:22:04 PST 2025


Author: Ramkumar Ramachandra
Date: 2025-11-17T08:22:00Z
New Revision: 54fdf67bdbf3bca188308c504dcacec097aa5425

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

LOG: [VPlan] Mark getPredicatedMask static (NFC) (#168067)

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
index 1845156e6de90..9bb61308cb7d9 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -236,7 +236,7 @@ static bool sinkScalarOperands(VPlan &Plan) {
 
 /// If \p R is a region with a VPBranchOnMaskRecipe in the entry block, return
 /// the mask.
-VPValue *getPredicatedMask(VPRegionBlock *R) {
+static VPValue *getPredicatedMask(VPRegionBlock *R) {
   auto *EntryBB = dyn_cast<VPBasicBlock>(R->getEntry());
   if (!EntryBB || EntryBB->size() != 1 ||
       !isa<VPBranchOnMaskRecipe>(EntryBB->begin()))


        


More information about the llvm-commits mailing list