[lld] [llvm] [LLD][COFF] Add more `--time-trace` tags for ThinLTO linking (PR #156471)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 3 08:53:00 PDT 2025


================
@@ -1915,13 +1927,9 @@ ThinBackend lto::createWriteIndexesThinBackend(
 
 Error LTO::runThinLTO(AddStreamFn AddStream, FileCache Cache,
                       const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols) {
+  llvm::TimeTraceScope timeScope("Run ThinLTO");
   LLVM_DEBUG(dbgs() << "Running ThinLTO\n");
   ThinLTO.CombinedIndex.releaseTemporaryMemory();
-  timeTraceProfilerBegin("ThinLink", StringRef(""));
----------------
teresajohnson wrote:

With this removed, we've lost the timer of just the index-based thin link. Why remove it?

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


More information about the llvm-commits mailing list