[llvm] [GVN/MemDep] Limit the size of the cache for non-local dependencies. (PR #150539)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 23 13:20:36 PDT 2025


================
@@ -80,6 +80,10 @@ static cl::opt<unsigned>
                      cl::desc("The number of blocks to scan during memory "
                               "dependency analysis (default = 200)"));
 
+static cl::opt<unsigned> CacheGlobalLimit(
+    "cache-global-limit", cl::Hidden, cl::init(10000),
----------------
nikic wrote:

```suggestion
    "memdep-nonlocal-cache-limit", cl::Hidden, cl::init(10000),
```
Or something. At least needs to include `memdep`.

https://github.com/llvm/llvm-project/pull/150539


More information about the llvm-commits mailing list