[llvm] [DTLTO] [LLVM] Initial DTLTO cache implementation (PR #156433)
Katya Romanova via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 20 01:45:36 PDT 2025
================
@@ -2488,20 +2530,26 @@ class OutOfProcessThinBackend : public CGThinBackend {
removeFile(JsonFile);
});
- SmallVector<StringRef, 3> Args = {DistributorPath};
- llvm::append_range(Args, DistributorArgs);
- Args.push_back(JsonFile);
- std::string ErrMsg;
- if (sys::ExecuteAndWait(Args[0], Args,
- /*Env=*/std::nullopt, /*Redirects=*/{},
- /*SecondsToWait=*/0, /*MemoryLimit=*/0, &ErrMsg)) {
- return make_error<StringError>(
- BCError + "distributor execution failed" +
- (!ErrMsg.empty() ? ": " + ErrMsg + Twine(".") : Twine(".")),
- inconvertibleErrorCode());
+ if (CachedJobs.load() < Jobs.size()) {
----------------
romanova-ekaterina wrote:
I added a comment when CachedJobs is defined, as well as an additional comment explaining this "if" statement.
https://github.com/llvm/llvm-project/pull/156433
More information about the llvm-commits
mailing list