This is an archive of the discontinued LLVM Phabricator instance.

[SimpliftyCFG] Put an alignment on generated switch tables
ClosedPublic

Authored by dmgreen on Sep 7 2018, 10:11 AM.

Details

Summary

Previously the alignment on the newly created switch table data was not set,
meaning that DataLayout::getPreferredAlignment was free to overalign
it to 16 bytes. This causes unnecessary code bloat.

Diff Detail

Repository
rL LLVM

Event Timeline

dmgreen created this revision.Sep 7 2018, 10:11 AM
This revision is now accepted and ready to land.Sep 7 2018, 11:07 AM
This revision was automatically updated to reflect the committed changes.