ARM: Align functions containing Thumb-2 jump tables to 4 bytes.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 1 May 2015 18:05:59 +0000 (18:05 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 1 May 2015 18:05:59 +0000 (18:05 +0000)
commitdc1a030aecf718a5b8b7811507e0f15f7e225e4f
tree0515aa962679435b61be1f841ade3cd7274db424
parent3c178d82ce6c24cf25232f194142a5b30c6f20c2
ARM: Align functions containing Thumb-2 jump tables to 4 bytes.

Functions with jump tables need an alignment of 4 because they use the ADR
instruction, which aligns the PC to 4 bytes before adding an offset.

Differential Revision: http://reviews.llvm.org/D9424

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236327 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMConstantIslandPass.cpp
test/CodeGen/ARM/thumb-alignment.ll