This is an archive of the discontinued LLVM Phabricator instance.

[PassManager] Save compile time by not running the verifier unnecessarily. NFC
ClosedPublic

Authored by lattner on Jun 14 2021, 10:31 AM.

Details

Summary

This changes the pass manager to not rerun the verifier when a pass says it
didn't change anything or after an OpToOpPassAdaptor, since neither of those
cases need verification (and if the pass lied, then there will be much larger
semantic problems than will be caught by the verifier).

This maintains behavior in EXPENSIVE_CHECKS mode.

Diff Detail

Event Timeline

lattner created this revision.Jun 14 2021, 10:31 AM
lattner requested review of this revision.Jun 14 2021, 10:31 AM
lattner updated this revision to Diff 351921.Jun 14 2021, 10:35 AM

Clean up the comments.

rriddle accepted this revision.Jun 14 2021, 11:14 AM

LGTM, nice!

This revision is now accepted and ready to land.Jun 14 2021, 11:14 AM
This revision was landed with ongoing or failed builds.Jun 14 2021, 11:44 AM
This revision was automatically updated to reflect the committed changes.