[clang] [lld] [llvm] [ThinLTO] Reduce the number of renaming due to promotions (PR #178587)

Teresa Johnson via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 26 10:00:00 PST 2026


================
@@ -2047,22 +2048,21 @@ Error LTO::runThinLTO(AddStreamFn AddStream, FileCache Cache,
   // no index entries in the typeIdMetadata map (e.g. if we are instead
   // performing IR-based WPD in hybrid regular/thin LTO mode).
   std::map<ValueInfo, std::vector<VTableSlotSummary>> LocalWPDTargetsMap;
+  DenseSet<StringRef> ExternallyVisibleSymbolNames;
+  DenseSet<StringRef> *ExternallyVisibleSymbolNamesPtr =
----------------
teresajohnson wrote:

Add a comment about what this is used for and why it is initialized the way it is.

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


More information about the cfe-commits mailing list