[llvm] 7a831eb - [VPlan] Remove unused VPLane::getNumCachedLanes. (NFC)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 12:41:03 PST 2025


Author: Florian Hahn
Date: 2025-01-23T20:38:47Z
New Revision: 7a831eb924e34e9c5e62f3b5a8e0db0278284f84

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

LOG: [VPlan] Remove unused VPLane::getNumCachedLanes. (NFC)

The function isn't used, remove it.

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 16c64f32ab6349..b52ee3c2428f3f 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -223,12 +223,6 @@ class VPLane {
       return Lane;
     }
   }
-
-  /// Returns the maxmimum number of lanes that we are able to consider
-  /// caching for \p VF.
-  static unsigned getNumCachedLanes(const ElementCount &VF) {
-    return VF.getKnownMinValue() * (VF.isScalable() ? 2 : 1);
-  }
 };
 
 /// VPTransformState holds information passed down when "executing" a VPlan,


        


More information about the llvm-commits mailing list