[PATCH] D51126: [ORC] Lock mutex in IRCompileLayer2::emit() to avoid calling into PassManager::run() in parallel.

Stefan Gränitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 23 09:42:52 PDT 2018


sgraenitz added a comment.

Ok, now I see the note on the `SimpleCompiler` class. I didn't consider that, because I didn't touch the `Compile` functor in `IRCompileLayer2`. It is the default in the LLJIT ctor. 
Maybe `LLJIT::Create()` could have an option for it or an alternative like `CreateMultiThreaded()`?


Repository:
  rL LLVM

https://reviews.llvm.org/D51126





More information about the llvm-commits mailing list