HomePhabricator

[mlir][PassManager] Only reinitialize the pass manager if the context registry…

Authored by rriddle on Jan 26 2021, 4:54 PM.

Description

[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