This is an archive of the discontinued LLVM Phabricator instance.

[clang][PS4] Enable SplitLTOUnits by default
ClosedPublic

Authored by ormris on Apr 18 2022, 5:45 PM.

Details

Summary

This patch contains the parts of the unified LTO pipeline specific to PS4/5. See this conversation: https://discourse.llvm.org/t/rfc-a-unified-lto-bitcode-frontend/61774/15

Diff Detail

Event Timeline

ormris created this revision.Apr 18 2022, 5:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2022, 5:45 PM
Herald added a subscriber: inglorion. · View Herald Transcript
ormris requested review of this revision.Apr 18 2022, 5:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2022, 5:45 PM

If a vendor wants to change some driver default, that's fine, especially when on/off already has a condition. But please include full context per https://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface and add a clang/test/Driver/ test.
Also, "SIE" isn't a clear abbreviation. PS4 seems more understandable by other contributors.

ormris updated this revision to Diff 424943.Apr 25 2022, 9:38 AM

Add context.

ormris updated this revision to Diff 523213.May 17 2023, 4:16 PM
ormris retitled this revision from [clang] Enable SplitLTOUnits by default for SIE targets to [clang][PS4] Enable SplitLTOUnits by default.
ormris edited the summary of this revision. (Show Details)

Changelog:

  • Rebased
  • Add tests
ormris updated this revision to Diff 523950.May 19 2023, 3:32 PM

Attempt to fix pre-merge checks

ormris updated this revision to Diff 526179.May 26 2023, 1:17 PM

clang-format

probinson added inline comments.Jun 8 2023, 12:54 PM
clang/test/Driver/split-lto-unit.c
9 ↗(On Diff #526179)

This all shows that -funified-lto has the desired effect, but not what the defaults are (yes for PS4, no for e.g. linux).

ormris updated this revision to Diff 530117.Jun 9 2023, 4:59 PM
  • Unified LTO default for all PlayStation targets
  • Add default case to tests
  • SplitLTOUnit not default for PS4
clang/test/Driver/split-lto-unit.c
9 ↗(On Diff #526179)

Should be fixed.

This revision is now accepted and ready to land.Jun 29 2023, 10:57 AM
This revision was landed with ongoing or failed builds.Jul 11 2023, 4:25 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2023, 4:25 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript