]> granicus.if.org Git - clang/commit
ARM: remove ARM/Thumb distinction for preferred alignment.
authorTim Northover <tnorthover@apple.com>
Tue, 14 Oct 2014 22:12:21 +0000 (22:12 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 14 Oct 2014 22:12:21 +0000 (22:12 +0000)
commit0e9cdfcf37ff87585ee9160c9c5da7935063f907
treedf2ba2473d9c4a64c3a05d9830a37a51b1880cb7
parent1a3bafcad4b524f98ddb1ec2306b3fd856143343
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/cfe/trunk@219735 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/CodeGen/target-data.c