[PATCH] D51800: [SimpliftyCFG] Put an alignment on generated switch tables

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 7 10:12:43 PDT 2018


dmgreen created this revision.
dmgreen added reviewers: efriedma, davide, echristo, hfinkel.

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.


https://reviews.llvm.org/D51800

Files:
  lib/Transforms/Utils/SimplifyCFG.cpp
  test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51800.164453.patch
Type: text/x-patch
Size: 5060 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180907/66e2c8a6/attachment.bin>


More information about the llvm-commits mailing list