This is an archive of the discontinued LLVM Phabricator instance.

Do not emit "-tune-cpu generic" for PS4 platform
ClosedPublic

Authored by dyung on Sep 1 2020, 11:50 AM.

Details

Summary

For the PS4, do not emit "-tune-cpu generic" since the platform only has 1 known CPU and we do not want to prevent optimizations by tuning for a generic rather than the specific processor it contains.

Diff Detail

Event Timeline

dyung requested review of this revision.Sep 1 2020, 11:50 AM
dyung created this revision.
probinson accepted this revision.Sep 1 2020, 12:28 PM

Couple of nits and LGTM.

clang/lib/Driver/ToolChains/Clang.cpp
2078

Missing final period.

clang/test/Driver/ps4-cpu-defaults.cpp
7

I'd rather see just CHECK-NOT: "-tune-cpu" (without the "generic") . There's no reason for any special tuning.

This revision is now accepted and ready to land.Sep 1 2020, 12:28 PM
This revision was landed with ongoing or failed builds.Sep 1 2020, 12:38 PM
This revision was automatically updated to reflect the committed changes.