[all-commits] [llvm/llvm-project] d41b3b: [mlir][Pass] Fix dropped statistics with nested ad...

Will Dietz via All-commits all-commits at lists.llvm.org
Wed Dec 7 06:31:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d41b3bf7c37d36f02e55662c31c14aecdcdf9b9b
      https://github.com/llvm/llvm-project/commit/d41b3bf7c37d36f02e55662c31c14aecdcdf9b9b
  Author: Will Dietz <w at wdtz.org>
  Date:   2022-12-07 (Wed, 07 Dec 2022)

  Changed paths:
    M mlir/lib/Pass/PassStatistics.cpp
    A mlir/test/Pass/pipeline-stats-nested.mlir

  Log Message:
  -----------
  [mlir][Pass] Fix dropped statistics with nested adaptors.

When running in parallel, nesting more than once caused
statistics to be dropped.

Fix by also preparing "async" pass managers before merging,
as they may also have "async" pass managers within.

Add test checking reported statistics have expected values
with and without threading enabled.

Reviewed By: rriddle

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




More information about the All-commits mailing list