ARM: remove ARM/Thumb distinction for preferred alignment.
authorTim Northover <tnorthover@apple.com>
Tue, 14 Oct 2014 22:12:17 +0000 (22:12 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 14 Oct 2014 22:12:17 +0000 (22:12 +0000)
commit7419c9c0c0167eff3aa3a5263e566c0f702dffb2
treee30766cceaf6eebf0cc4bccc78460775e2ff2c5a
parent32d728fbb978f9fef65abbc57f19a80cb28350e1
ARM: remove ARM/Thumb distinction for preferred alignment.

Thumb1 has legitimate reasons for preferring 32-bit alignment of types
i1/i8/i16, since the 16-bit encoding of "add rD, sp, #imm" requires #imm to be
a multiple of 4. However, this is a trade-off betweem code size and RAM usage;
the DataLayout string is not the best place to represent it even if desired.

So this patch removes the extra Thumb requirements, hopefully making ARM and
Thumb completely compatible in this respect.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219734 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMSubtarget.cpp
test/CodeGen/ARM/2011-04-12-AlignBug.ll
test/CodeGen/ARM/aggregate-align.ll [deleted file]
test/CodeGen/ARM/preferred-align.ll [new file with mode: 0644]