This is an archive of the discontinued LLVM Phabricator instance.

[NewPM] Fix -print-changed when a -filter-print-funcs function is removed
ClosedPublic

Authored by aeubanks on Apr 9 2021, 4:10 PM.

Details

Summary

-filter-print-funcs -print-changed was crashing after the filter func
was removed by a pass with

Assertion failed: After.find("*** IR Dump") == 0 && "Unexpected banner format."

We weren't printing the banner because when we have -filter-print-funcs,
we print each function separately, letting the print function filter out
unwanted functions.

Diff Detail

Event Timeline

aeubanks created this revision.Apr 9 2021, 4:10 PM
aeubanks requested review of this revision.Apr 9 2021, 4:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 9 2021, 4:10 PM
jamieschmeiser added a comment.EditedApr 12 2021, 7:52 AM

Do you think that the IR being deleted should be reported rather than silently disappearing from the trace? Perhaps with

Out << "*** IR Deleted" << Name << " ***\n"; 
```before the return?
aeubanks updated this revision to Diff 336915.Apr 12 2021, 11:43 AM

print "IR Deleted"

This revision is now accepted and ready to land.Apr 12 2021, 11:49 AM
This revision was landed with ongoing or failed builds.Apr 12 2021, 12:01 PM
This revision was automatically updated to reflect the committed changes.