[llvm] f36af5d - [CaptureTracking] Raise the default use budget from 100 to 150 (#222654)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 07:29:52 PDT 2026


Author: michaelselehov
Date: 2026-09-24T16:29:45+02:00
New Revision: f36af5d17f273d6f70249a1b97bf452302e18ce6

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

LOG: [CaptureTracking] Raise the default use budget from 100 to 150 (#222654)

Added: 
    

Modified: 
    llvm/lib/Analysis/CaptureTracking.cpp
    llvm/test/Transforms/LoadStoreVectorizer/batch-aa-compile-time.ll

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/CaptureTracking.cpp b/llvm/lib/Analysis/CaptureTracking.cpp
index 9b4298c7decfe1..dcfd32ea37c74a 100644
--- a/llvm/lib/Analysis/CaptureTracking.cpp
+++ b/llvm/lib/Analysis/CaptureTracking.cpp
@@ -45,7 +45,7 @@ STATISTIC(NumNotCapturedBefore, "Number of pointers not captured before");
 static cl::opt<unsigned>
     DefaultMaxUsesToExplore("capture-tracking-max-uses-to-explore", cl::Hidden,
                             cl::desc("Maximal number of uses to explore."),
-                            cl::init(100));
+                            cl::init(150));
 
 unsigned llvm::getDefaultMaxUsesToExploreForCaptureTracking() {
   return DefaultMaxUsesToExplore;

diff  --git a/llvm/test/Transforms/LoadStoreVectorizer/batch-aa-compile-time.ll b/llvm/test/Transforms/LoadStoreVectorizer/batch-aa-compile-time.ll
index 049c9a3f70e0f1..04f194241a8b29 100644
--- a/llvm/test/Transforms/LoadStoreVectorizer/batch-aa-compile-time.ll
+++ b/llvm/test/Transforms/LoadStoreVectorizer/batch-aa-compile-time.ll
@@ -5,7 +5,7 @@
 ; and caching the result leads to 2 calls to that mechanism instead of ~300,000 (run with -stats to see the 
diff erence)
 
 ; This test only demonstrates the compile time issue if capture-tracking-max-uses-to-explore is set to at least 1024,
-; because with the default value of 100, the CaptureTracking analysis is not run, NoAlias is not proven, and the vectorizer gives up early.
+; because with the default value of 150, the CaptureTracking analysis is not run, NoAlias is not proven, and the vectorizer gives up early.
 
 @global_mem = external global i8, align 4
 


        


More information about the llvm-commits mailing list