This is an archive of the discontinued LLVM Phabricator instance.

ARC: Enforce function alignment at code emission time
ClosedPublic

Authored by arsenm on Jun 18 2020, 6:50 AM.

Details

Reviewers
petecoup
Summary

Don't do this in the MachineFunctionInfo constructor. Also, ensure the
alignment rather than overwriting it outright. I vaguely remember
there was another place to enforce the target minimum alignment, but I
couldn't find it (it's there for instructions).

Diff Detail

Event Timeline

arsenm created this revision.Jun 18 2020, 6:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 18 2020, 6:50 AM
arsenm updated this revision to Diff 271705.Jun 18 2020, 6:52 AM
petecoup accepted this revision.Jun 18 2020, 9:21 AM

Were we the only target doing this? Regardless, this seems fine to me, thanks!

This revision is now accepted and ready to land.Jun 18 2020, 9:21 AM

Were we the only target doing this? Regardless, this seems fine to me, thanks!

Nothing else was modifying the function here. Some others are still doing something with the machine function which I intend to fix