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

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 13 21:05:05 PST 2026


================
@@ -1178,9 +1178,12 @@ static GlobalValueSummary::GVFlags getDecodedGVSummaryFlags(uint64_t RawFlags,
   bool Live = (RawFlags & 0x2) || Version < 3;
   bool Local = (RawFlags & 0x4);
   bool AutoHide = (RawFlags & 0x8);
+  // RenameOnPromotion should be true. The value may be adjusted at thinLTO.
+  bool RenameOnPromotion = true;
----------------
yonghong-song wrote:

Thanks! I just add codes in BitcodeWriter.cpp and added a distributed ThinLTO test.

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


More information about the cfe-commits mailing list