This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add preferred function and loop alignment RISCVSubtarget. NFC
ClosedPublic

Authored by craig.topper on Feb 14 2023, 2:43 PM.

Details

Summary

These seem like properties we will want to adjust based on -mtune.
Move them to subtarget like is done on ARM and AArch64. Don't add
any overrides yet.

Note there's a slight change here. We are now passing Align(1) for
preferred function alignment where we previously passed the minimum
alignment. As far as I could tell, it will be maxed with min when
it used so this should be ok.

Diff Detail

Event Timeline

craig.topper created this revision.Feb 14 2023, 2:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2023, 2:43 PM
craig.topper requested review of this revision.Feb 14 2023, 2:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2023, 2:43 PM
reames accepted this revision.Feb 15 2023, 4:53 PM

LGTM

This revision is now accepted and ready to land.Feb 15 2023, 4:53 PM
This revision was landed with ongoing or failed builds.Feb 17 2023, 8:44 AM
This revision was automatically updated to reflect the committed changes.