This is an archive of the discontinued LLVM Phabricator instance.

[ModuleInlinerWrapperPass] Do some naive printing of wrapped pipeline with -print-pipeline-passes
ClosedPublic

Authored by bjope on Sep 16 2021, 6:03 AM.

Details

Summary

Bisecting and reducing opt pipelines that includes the
ModuleInlinerWrapperPass has turned out to be a bit problematic.
This is far from perfect (it still lacks information about inline
advisor params etc.), but it should give some kind of hint to what
the wrapped pipeline looks like when using -print-pipeline-passes.

Diff Detail

Event Timeline

bjope created this revision.Sep 16 2021, 6:03 AM
bjope requested review of this revision.Sep 16 2021, 6:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 16 2021, 6:03 AM
mtrofin accepted this revision.Sep 16 2021, 9:09 AM
This revision is now accepted and ready to land.Sep 16 2021, 9:09 AM

I think we shouldn't worry about the InlineAdvisor and params. For testing we already create a default InlineAdvisor if there isn't already one (InlinerPass::getAdvisor()). So I think we should still try to create something that can be passed to -passes

bjope updated this revision to Diff 374238.Sep 22 2021, 7:55 AM

Dropped the ModuleInlinerWrapperPass<<<...>>> tags, as suggested by aeubank.

bjope edited the summary of this revision. (Show Details)Sep 22 2021, 7:58 AM
aeubanks accepted this revision.Sep 22 2021, 7:58 AM
This revision was landed with ongoing or failed builds.Sep 23 2021, 12:55 AM
This revision was automatically updated to reflect the committed changes.