Page MenuHomePhabricator

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

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

Details

Summary

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.

Diff Detail

Event Timeline

rriddle created this revision.Jan 26 2021, 4:54 PM
rriddle requested review of this revision.Jan 26 2021, 4:54 PM
mehdi_amini accepted this revision.Jan 26 2021, 8:29 PM
This revision is now accepted and ready to land.Jan 26 2021, 8:29 PM