[lld] [llvm] [LLD][COFF] Add more `--time-trace` tags for ThinLTO linking (PR #156471)
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 3 12:53:25 PDT 2025
================
@@ -1440,8 +1440,12 @@ void SymbolTable::compileBitcodeFiles() {
llvm::TimeTraceScope timeScope("Compile bitcode");
ScopedTimer t(ctx.ltoTimer);
lto.reset(new BitcodeCompiler(ctx));
- for (BitcodeFile *f : bitcodeFileInstances)
- lto->add(*f);
+ {
+ llvm::TimeTraceScope addScope("Add bitcode file instances");
+ for (BitcodeFile *f : bitcodeFileInstances)
+ lto->add(*f);
+ }
+ llvm::TimeTraceScope compileScope("LTO compile");
----------------
aganea wrote:
I moved this scope at the begining of `BitcodeCompiler::compile()` and removed the one at the top of this function.
https://github.com/llvm/llvm-project/pull/156471
More information about the llvm-commits
mailing list