[llvm] [LAA] Add stencil group merging to reduce runtime pointer checks (PR #187252)

Igor Kirillov via llvm-commits llvm-commits at lists.llvm.org
Wed May 13 02:27:55 PDT 2026


================
@@ -562,7 +562,8 @@ class RuntimePointerChecking {
 
   /// Generate the checks and store it.  This also performs the grouping
   /// of pointers to reduce the number of memchecks necessary.
-  LLVM_ABI void generateChecks(MemoryDepChecker::DepCandidates &DepCands);
+  LLVM_ABI void generateChecks(MemoryDepChecker::DepCandidates &DepCands,
----------------
igogo-x86 wrote:

Nope, there's only one instance - see:

```
LoopAccessInfo::LoopAccessInfo(Loop *L, ScalarEvolution *SE,
   ...
    : PSE(std::make_unique<PredicatedScalarEvolution>(*SE, *L)),
```

And PredicatedScalarEvolution holds a reference to the ScalarEvolution

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


More information about the llvm-commits mailing list