[PATCH] D99554: [ThinLTO] During module importing, close one source module before open another one for distributed mode.

Teresa Johnson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 19 10:43:04 PDT 2021


tejohnson added a comment.

In D99554#2674229 <https://reviews.llvm.org/D99554#2674229>, @wenlei wrote:

> Does this help non-distributed ThinLTO as well? cc: @weiwang

No. See the note in Wei's description about this:

> Note that this patch only changes the distributed thinlto mode. For in process thinlto mode, one source module is shared across different thinlto backend threads so it is not changed in this patch.

Specifically, for in-process ThinLTO all modules are kept open so that we don't need to reload a module for each thread that wants to import from it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99554/new/

https://reviews.llvm.org/D99554



More information about the cfe-commits mailing list