[llvm] 69703b1 - [ORC] Fix bot failure due to 7da63426ac5 (ORC task dispatch unification).
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 24 01:24:28 PDT 2024
Author: Lang Hames
Date: 2024-04-24T00:24:16-08:00
New Revision: 69703b1f94ac8e5c03bd39d0a581bf6e553545e4
URL: https://github.com/llvm/llvm-project/commit/69703b1f94ac8e5c03bd39d0a581bf6e553545e4
DIFF: https://github.com/llvm/llvm-project/commit/69703b1f94ac8e5c03bd39d0a581bf6e553545e4.diff
LOG: [ORC] Fix bot failure due to 7da63426ac5 (ORC task dispatch unification).
Fixes the failure at https://lab.llvm.org/buildbot/#/builders/131/builds/62928,
and add comments about unused variable and update debugging output.
Coding my way home: 6.44615S, 128.16704W
Added:
Modified:
llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp
llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
Removed:
################################################################################
diff --git a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp
index b11d875c6f2d06..7c896ab6d88e07 100644
--- a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp
+++ b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp
@@ -129,7 +129,7 @@ launchLocalExecutor(StringRef ExecutablePath) {
close(FromExecutor[WriteEnd]);
auto EPC = SimpleRemoteEPC::Create<FDSimpleRemoteEPCTransport>(
- std::make_unique<DynamicThreadPoolTaskDispatcher>(),
+ std::make_unique<DynamicThreadPoolTaskDispatcher>(std::nullopt),
SimpleRemoteEPC::Setup(),
FromExecutor[ReadEnd], ToExecutor[WriteEnd]);
if (!EPC)
@@ -201,7 +201,7 @@ connectTCPSocket(StringRef NetworkAddress) {
return CreateErr(toString(SockFD.takeError()));
return SimpleRemoteEPC::Create<FDSimpleRemoteEPCTransport>(
- std::make_unique<DynamicThreadPoolTaskDispatcher>(),
+ std::make_unique<DynamicThreadPoolTaskDispatcher>(std::nullopt),
SimpleRemoteEPC::Setup(), *SockFD);
}
diff --git a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
index c06e55c039d34b..568b2ececaa09a 100644
--- a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
@@ -681,8 +681,10 @@ Error LLJITBuilderState::prepareForConstruction() {
inconvertibleErrorCode());
#endif // !LLVM_ENABLE_THREADS
+ // Only used in debug builds.
[[maybe_unused]] bool ConcurrentCompilationSettingDefaulted =
!SupportConcurrentCompilation;
+
if (!SupportConcurrentCompilation) {
#if LLVM_ENABLE_THREADS
SupportConcurrentCompilation = NumCompileThreads || ES || EPC;
@@ -719,7 +721,7 @@ Error LLJITBuilderState::prepareForConstruction() {
<< " Support concurrent compilation: "
<< (*SupportConcurrentCompilation ? "Yes" : "No");
if (ConcurrentCompilationSettingDefaulted)
- dbgs() << " (defaulted based on ES / EPC)\n";
+ dbgs() << " (defaulted based on ES / EPC / NumCompileThreads)\n";
else
dbgs() << "\n";
dbgs() << " Number of compile threads: " << NumCompileThreads << "\n";
More information about the llvm-commits
mailing list