This is an archive of the discontinued LLVM Phabricator instance.

[NewPM] Bail from PassManager::run() if there are no passes
AbandonedPublic

Authored by aeubanks on Nov 7 2020, 4:49 PM.

Details

Summary

With D89158, we have the possibility of creating empty pass managers due
to callbacks choosing to not add passes under -O0. e.g. Polly can add
EP callbacks but not add any passes. This affects some tests that use
-debug-pass-manager, like the one fixed in 8eb338a92a4e.

Diff Detail

Event Timeline

aeubanks created this revision.Nov 7 2020, 4:49 PM
Herald added a project: Restricted Project. · View Herald Transcript
aeubanks requested review of this revision.Nov 7 2020, 4:49 PM

Thank you for the quick fix, this resolves my reported issue. I can approve if need be but it would probably be better for there to be other eyes on this :)

MaskRay accepted this revision.Nov 7 2020, 7:21 PM

LGTM.

This revision is now accepted and ready to land.Nov 7 2020, 7:21 PM

Actually this causes the test to fail without polly since now there's no output since it's just an empty module pass manager. Will revert original change.

aeubanks abandoned this revision.Nov 8 2020, 12:44 AM