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

via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 10 13:47:45 PST 2026


================
@@ -1429,6 +1433,7 @@ bool DevirtIndex::trySingleImplDevirt(MutableArrayRef<ValueInfo> TargetsForSlot,
   // step.
   Res->TheKind = WholeProgramDevirtResolution::SingleImpl;
   if (GlobalValue::isLocalLinkage(S->linkage())) {
+    Globals.insert(TheFn.name());
----------------
yonghong-song wrote:

Yes, will do.

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


More information about the cfe-commits mailing list