Skip to content

Commit a98fe79

Browse files
committed
> This isn't really tracing the full "thin backend", should a different string be used here?
Thanks. Nice comment. I have removed all the tracing code from the new backend now. I proposed to add time tracing in a separate later PR. Is that acceptable?
1 parent b46bfab commit a98fe79

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/LTO/LTO.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2281,9 +2281,6 @@ class OutOfProcessThinBackend : public CGThinBackend {
22812281
assert(ModuleToDefinedGVSummaries.count(ModulePath));
22822282
BackendThreadPool.async(
22832283
[=](Job &J, const FunctionImporter::ImportMapTy &ImportList) {
2284-
if (LLVM_ENABLE_THREADS && Conf.TimeTraceEnabled)
2285-
timeTraceProfilerInitialize(Conf.TimeTraceGranularity,
2286-
"thin backend");
22872284
if (auto E = emitFiles(ImportList, J.ModuleID, J.SummaryIndexPath,
22882285
J.ModuleID.str(), J.ImportFiles)) {
22892286
std::unique_lock<std::mutex> L(ErrMu);
@@ -2292,8 +2289,6 @@ class OutOfProcessThinBackend : public CGThinBackend {
22922289
else
22932290
Err = std::move(E);
22942291
}
2295-
if (LLVM_ENABLE_THREADS && Conf.TimeTraceEnabled)
2296-
timeTraceProfilerFinishThread();
22972292
},
22982293
std::ref(J), std::ref(ImportList));
22992294

0 commit comments

Comments
 (0)