This is an archive of the discontinued LLVM Phabricator instance.

[NPM] Support -fmerge-functions
ClosedPublic

Authored by aeubanks on Dec 9 2020, 10:43 PM.

Details

Summary

I tried to put it in the same place in the pipeline as the legacy PM.

Fixes PR48399.

Diff Detail

Event Timeline

aeubanks created this revision.Dec 9 2020, 10:43 PM
aeubanks requested review of this revision.Dec 9 2020, 10:43 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 9 2020, 10:43 PM
asbirlea accepted this revision.Dec 10 2020, 10:26 AM

Thank you for adding this support.

This revision is now accepted and ready to land.Dec 10 2020, 10:26 AM
nikic added inline comments.Dec 10 2020, 11:20 AM
llvm/lib/Passes/PassBuilder.cpp
1778
aeubanks updated this revision to Diff 310969.Dec 10 2020, 11:39 AM

move -O0 MergeFunctions after inlining
add to LTO pipeline (matches legacy PM)

nikic accepted this revision.Dec 10 2020, 11:44 AM

LGTM

This revision was landed with ongoing or failed builds.Dec 10 2020, 11:45 AM
This revision was automatically updated to reflect the committed changes.