[llvm] [LAA] Support assumptions in evaluatePtrAddRecAtMaxBTCWillNotWrap (PR #147047)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 4 06:11:17 PDT 2025


================
@@ -296,6 +301,10 @@ class MemoryDepChecker {
   /// example we might assume a unit stride for a pointer in order to prove
   /// that a memory access is strided and doesn't wrap.
   PredicatedScalarEvolution &PSE;
+
+  AssumptionCache *AC;
+  DominatorTree *DT;
----------------
fhahn wrote:

An alternative would be to retrieve them directly from ScalarEvolution, which holds them already, but it's not accessible at the moment. Not sure if we should expose them to use more conveniently here in the patch

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


More information about the llvm-commits mailing list