[PATCH] D140627: [orc] Pass big JITTargetMachineBuilder parameters by reference to avoid unnecessary copies
Lang Hames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 22:31:49 PST 2023
lhames added a comment.
Hi @fzou1,
JITTargetMachineBuilders are only moved around at startup at the moment, and they're only ~0.5kb. Have they been observed to have a performance impact? If so we should probably transfer them via `unique_ptr` to avoid the copies, but I'm not sure it's necessary yet.
================
Comment at: llvm/docs/tutorial/BuildingAJIT1.rst:195-197
+ auto EPC = SelfExecutorProcessControl::Create();
+ if (!EPC)
+ return EPC.takeError();
----------------
The introduction of EPC here seems unrelated to the other changes?
================
Comment at: llvm/docs/tutorial/BuildingAJIT2.rst:61
private:
- ExecutionSession ES;
- RTDyldObjectLinkingLayer ObjectLayer;
- IRCompileLayer CompileLayer;
- IRTransformLayer TransformLayer;
+ std::unique_ptr<ExecutionSession> ES;
----------------
Is this change related to the rest of the patch?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140627/new/
https://reviews.llvm.org/D140627
More information about the llvm-commits
mailing list