This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Expose the -Oz module optimization pipeline to opt
ClosedPublic

Authored by mtrofin on Aug 19 2020, 9:37 AM.

Details

Summary

This exposes the module optimization pipeline as a pass that can be
applied stand-alone when using 'opt'. This helps ml inliner training
scenarios, where we start with IR captured right before inlining,
perform the inlining (-scc-oz-module-inliner) and then want to continue
and observe the final IR (where this patch comes into play). We can then
apply llc on the resulting IR to continue compilation down to native.

Diff Detail

Event Timeline

mtrofin created this revision.Aug 19 2020, 9:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2020, 9:37 AM
mtrofin requested review of this revision.Aug 19 2020, 9:37 AM
yundiqian accepted this revision.Aug 19 2020, 9:40 AM
This revision is now accepted and ready to land.Aug 19 2020, 9:40 AM
ebrevdo accepted this revision.Aug 19 2020, 2:14 PM
ebrevdo added inline comments.
llvm/lib/Passes/PassRegistry.def
89

/*param_name=*/false

mtrofin updated this revision to Diff 286830.Aug 20 2020, 8:40 AM

comment-doc for parameter

This revision was landed with ongoing or failed builds.Aug 20 2020, 9:29 AM
This revision was automatically updated to reflect the committed changes.