[all-commits] [llvm/llvm-project] 02bc4c: [mlir][PassManager] Only reinitialize the pass man...

River Riddle via All-commits all-commits at lists.llvm.org
Wed Jan 27 17:50:48 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 02bc4c95f0729cc819776f73ec94a25405579183
      https://github.com/llvm/llvm-project/commit/02bc4c95f0729cc819776f73ec94a25405579183
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2021-01-27 (Wed, 27 Jan 2021)

  Changed paths:
    M mlir/include/mlir/IR/MLIRContext.h
    M mlir/include/mlir/Pass/PassManager.h
    M mlir/lib/IR/MLIRContext.cpp
    M mlir/lib/Pass/Pass.cpp

  Log Message:
  -----------
  [mlir][PassManager] Only reinitialize the pass manager if the context registry changes

This prevents needless reinitialization for clients that want to reuse a pass manager multiple times. A new `getRegisryHash` function is exposed by the context to give a rough indicator of when the context registry has changed.

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




More information about the All-commits mailing list