This is an archive of the discontinued LLVM Phabricator instance.

[AARCH64] ssbs should be enabled by default for cortex-x1, cortex-x1c, cortex-a77
ClosedPublic

Authored by stuij on Mar 8 2022, 3:48 AM.

Diff Detail

Event Timeline

stuij created this revision.Mar 8 2022, 3:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 8 2022, 3:48 AM
stuij requested review of this revision.Mar 8 2022, 3:48 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 8 2022, 3:48 AM
dmgreen added a subscriber: dmgreen.Mar 8 2022, 4:55 AM
dmgreen added inline comments.
llvm/lib/Target/AArch64/AArch64.td
978–979

X1 and A77 missing SSBS too. Should they be added at the same time?

DavidSpickett added inline comments.Mar 8 2022, 5:32 AM
clang/test/Preprocessor/aarch64-target-features.c
288

Why did this change, was it just not correct before or is r82 some equivalent of the x1c?

stuij updated this revision to Diff 414635.Mar 11 2022, 4:22 AM

addressed review comments

stuij retitled this revision from [AARCH64] ssbs should be enabled by default for cortex-x1c to [AARCH64] ssbs should be enabled by default for cortex-x1, cortex-x1c, cortex-a77.Mar 11 2022, 4:24 AM
stuij marked 2 inline comments as done.Mar 11 2022, 4:27 AM
stuij added inline comments.
clang/test/Preprocessor/aarch64-target-features.c
288

yes, not correct. ssbs was enabled by default for cortex-r82, but we're now making sure we're passing +ssbs to the backend, like we do with other extensions.

llvm/lib/Target/AArch64/AArch64.td
978–979

Yes they should. Thanks!

amilendra accepted this revision.Mar 14 2022, 6:35 AM
amilendra added inline comments.
llvm/lib/Target/AArch64/AArch64.td
978–979

Maybe add unit tests for X1 and A77 too?

This revision is now accepted and ready to land.Mar 14 2022, 6:35 AM
stuij marked 2 inline comments as done.Mar 14 2022, 7:32 AM
stuij added inline comments.
llvm/lib/Target/AArch64/AArch64.td
978–979

I did. See the top file.

In general it'd be good to have better testing for individual cores. This will happen more structurally in future changes.

amilendra added inline comments.Mar 14 2022, 10:45 AM
llvm/lib/Target/AArch64/AArch64.td
978–979

Ah yes, I was expecting tests similar to that for R82 in aarch64-target-features.c. Anyway what you have already is good for ssbs

This revision was landed with ongoing or failed builds.Mar 15 2022, 6:44 AM
This revision was automatically updated to reflect the committed changes.