[llvm] [MemDep] Remove cached non-local defs referencing deleted instructions (PR #219929)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 31 04:27:32 PDT 2026
================
@@ -1504,8 +1505,10 @@ void MemoryDependenceResults::removeCachedNonLocalPointerDependencies(
if (auto *I = dyn_cast<Instruction>(P.getPointer())) {
auto toRemoveIt = ReverseNonLocalDefsCache.find(I);
if (toRemoveIt != ReverseNonLocalDefsCache.end()) {
- for (const auto *entry : toRemoveIt->second)
- NonLocalDefsCache.erase(entry);
+ for (const auto *Entry : toRemoveIt->second) {
----------------
Hari-Shankar-Karthik wrote:
Rename `Entry` to `entry`?
https://github.com/llvm/llvm-project/pull/219929
More information about the llvm-commits
mailing list