[all-commits] [llvm/llvm-project] 809b44: Fix MLIR pass manager initialization: hash the pas...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Tue Aug 22 12:55:41 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 809b44039555d35096722e32aea2a8df778c303b
      https://github.com/llvm/llvm-project/commit/809b44039555d35096722e32aea2a8df778c303b
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-08-22 (Tue, 22 Aug 2023)

  Changed paths:
    M mlir/include/mlir/Pass/PassManager.h
    M mlir/lib/Pass/Pass.cpp
    M mlir/unittests/Pass/PassManagerTest.cpp

  Log Message:
  -----------
  Fix MLIR pass manager initialization: hash the pass pipeline to detect when initialization is needed

The current logic hashes the context to detect registration changes and re-run
the pass initialization. However it wasn't checking for changes to the
pipeline, so a pass that would get added after a first run would not be
initialized during subsequent runs.

Reviewed By: Mogball

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




More information about the All-commits mailing list