[llvm] [LAA] Add stencil group merging to reduce runtime pointer checks (PR #187252)
Igor Kirillov via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 05:55:13 PDT 2026
================
@@ -2109,7 +2198,8 @@ bool AccessAnalysis::createCheckForAccess(RuntimePointerChecking &RtCheck,
bool IsWrite = Access.getInt();
if (!RtCheck.insert(TheLoop, Ptr, PtrExpr, AccessTy, IsWrite, DepId, ASId,
- PSE, NeedsFreeze)) {
+ PSE, NeedsFreeze,
+ /*IsForked=*/RTCheckPtrs.size() == 2)) {
----------------
igogo-x86 wrote:
The code in `createCheckForAccess` uses this comparison, but that's a weak argument I guess. I changed it.
https://github.com/llvm/llvm-project/pull/187252
More information about the llvm-commits
mailing list