This is an archive of the discontinued LLVM Phabricator instance.

Set isRequired true for CFGViewer/CFGPrinter passes
ClosedPublic

Authored by wenju on Jun 4 2023, 10:07 PM.

Details

Summary

This PR allows function's cfg to be viewed/printed even if the function
has optnone attribute.

Diff Detail

Event Timeline

wenju created this revision.Jun 4 2023, 10:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 4 2023, 10:07 PM
wenju requested review of this revision.Jun 4 2023, 10:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 4 2023, 10:07 PM

Consider a -passes=dot-cfg-quiet test. See llvm/test/Other for some examples.

wenju updated this revision to Diff 528684.Jun 5 2023, 10:26 PM

update llvm/test/Other/cfg-printer-filter.ll to test optnone

MaskRay accepted this revision.Jun 6 2023, 4:18 PM
This revision is now accepted and ready to land.Jun 6 2023, 4:18 PM
This revision was automatically updated to reflect the committed changes.