This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Align blocks that are not fallthough targets
ClosedPublic

Authored by dmgreen on Jan 11 2021, 1:23 AM.

Details

Summary

If the previous block in a function does not fallthough, adding nop's to align it will never be executed. This means we can freely (except for codesize) align more branches. This happens in constantislandspass (as it cannot happen later) and only happens at aggressive optimization levels as it does increase codesize.

Diff Detail

Event Timeline

dmgreen created this revision.Jan 11 2021, 1:23 AM
dmgreen requested review of this revision.Jan 11 2021, 1:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 11 2021, 1:23 AM
samtebbs accepted this revision.Jan 15 2021, 8:26 AM

Nice and clean 👍🏻

This revision is now accepted and ready to land.Jan 15 2021, 8:26 AM
This revision was automatically updated to reflect the committed changes.