[PATCH] D130955: [InstrProf] Clear `ReferencedNames` as well (NFC).
Michele Scandale via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 1 18:53:33 PDT 2022
michele.scandale created this revision.
michele.scandale added reviewers: davidxl, vsk.
Herald added subscribers: Enna1, ellis, hiraditya.
Herald added a project: All.
michele.scandale requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Ensure that the all state that depends on a module or context is cleared
so that there are no issues when the same instance of the pass is used
to process different modules.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130955
Files:
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
Index: llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
===================================================================
--- llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
+++ llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
@@ -522,6 +522,7 @@
ProfileDataMap.clear();
CompilerUsedVars.clear();
UsedVars.clear();
+ ReferencedNames.clear();
TT = Triple(M.getTargetTriple());
bool MadeChange = false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130955.449163.patch
Type: text/x-patch
Size: 440 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220802/a6c175a7/attachment.bin>
More information about the llvm-commits
mailing list