[all-commits] [llvm/llvm-project] e6d643: [fir][aa] Add opt-in cache for use by fir AliasAna...
Kareem Ergawy via All-commits
all-commits at lists.llvm.org
Tue Sep 8 05:07:27 PDT 2026
Branch: refs/heads/users/ergawy/fir-aa-effects-cache
Home: https://github.com/llvm/llvm-project
Commit: e6d64333e0e96072d12487849ebd6dd38dd7a7c3
https://github.com/llvm/llvm-project/commit/e6d64333e0e96072d12487849ebd6dd38dd7a7c3
Author: ergawy <kareem.ergawy at gmail.com>
Date: 2026-09-08 (Tue, 08 Sep 2026)
Changed paths:
M flang/include/flang/Optimizer/Analysis/AliasAnalysis.h
M flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
M flang/lib/Optimizer/Transforms/LoopInvariantCodeMotion.cpp
A flang/unittests/Optimizer/AliasAnalysisRecursiveEffectsCacheTest.cpp
M flang/unittests/Optimizer/CMakeLists.txt
Log Message:
-----------
[fir][aa] Add opt-in cache for use by fir AliasAnalysis clients
Adds AliasAnalysisRecursiveEffectsCache, an opt-in cache that memoizes
per-operation read/write summaries so that getModRef on an operation with
HasRecursiveMemoryEffects does not re-walk its nested regions on every
query.
This is independent of the getSource() memoization added separately: that
one is keyed on (value, flags) and answers "what memory does this value
refer to", while this one is keyed on the operation and answers "what does
this operation and everything nested in it read and write". LICM enables
both, since it only hoists pure-read ops and so invalidates neither.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list