[all-commits] [llvm/llvm-project] 45adf6: Avoid creating a ThreadPool in MlirOptMain when `-...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Fri Jan 7 18:18:45 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 45adf608024655d3594993d041af9602da41780f
      https://github.com/llvm/llvm-project/commit/45adf608024655d3594993d041af9602da41780f
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2022-01-08 (Sat, 08 Jan 2022)

  Changed paths:
    M mlir/lib/Support/MlirOptMain.cpp

  Log Message:
  -----------
  Avoid creating a ThreadPool in MlirOptMain when `--mlir-disable-threading` option is set

a32300a changed it to create a ThreadPool eagerly so that it gets reused
across buffers, however it also made it so that we create a ThreadPool
early even if we're not gonna use it later because of the command line
option `--mlir-disable-threading` is provided.

Fix #53056

Differential Revision: https://reviews.llvm.org/D116848




More information about the All-commits mailing list