This is an archive of the discontinued LLVM Phabricator instance.

[gold] Remove support for legacy pass manager
ClosedPublic

Authored by nikic on Apr 7 2022, 2:34 AM.

Details

Summary

This removes support for performing LTO using the legacy pass manager in gold. Explicitly enabling the new pass manager is retained as a no-op.

Diff Detail

Event Timeline

nikic created this revision.Apr 7 2022, 2:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2022, 2:34 AM
nikic requested review of this revision.Apr 7 2022, 2:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2022, 2:34 AM
nikic added inline comments.Apr 7 2022, 2:35 AM
llvm/test/tools/gold/X86/opt-remarks.ll
56

I believe this remark duplication is because both AlwaysInliner and Inliner emit remarks.

aeubanks accepted this revision.Apr 7 2022, 8:54 AM
This revision is now accepted and ready to land.Apr 7 2022, 8:54 AM
MaskRay accepted this revision.Apr 7 2022, 6:13 PM
MaskRay added a subscriber: MaskRay.
MaskRay added inline comments.
llvm/tools/gold/gold-plugin.cpp
288

//

sing the legacy pass manager in gold

in LLVMgold.so

Despite the name, this supports both gold and GNU ld.

This revision was landed with ongoing or failed builds.Apr 8 2022, 1:33 AM
This revision was automatically updated to reflect the committed changes.