This is an archive of the discontinued LLVM Phabricator instance.

Fix MLIR pass manager initialization: hash the pass pipeline to detect when initialization is needed
ClosedPublic

Authored by mehdi_amini on Aug 20 2023, 4:32 PM.

Details

Summary

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.

Diff Detail

Event Timeline

mehdi_amini created this revision.Aug 20 2023, 4:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 20 2023, 4:32 PM
mehdi_amini requested review of this revision.Aug 20 2023, 4:32 PM
Mogball accepted this revision.Aug 22 2023, 12:35 PM

Nice. I've hit this issue before

This revision is now accepted and ready to land.Aug 22 2023, 12:35 PM
This revision was landed with ongoing or failed builds.Aug 22 2023, 12:55 PM
This revision was automatically updated to reflect the committed changes.