When placing constant islands and adjusting for alignment padding, inline
authorJim Grosbach <grosbach@apple.com>
Thu, 19 Nov 2009 23:10:28 +0000 (23:10 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 19 Nov 2009 23:10:28 +0000 (23:10 +0000)
commit4d8e90a026a29a812616690bd77b72e0b5ae6c75
treec9faa8cade07229395b804e290bf3964c465d3bd
parentf94b5edc452c32d9ae258e7de30c33391fda6cc9
When placing constant islands and adjusting for alignment padding, inline
assembly can confuse things utterly, as it's assumed that instructions in
inline assembly are 4 bytes wide. For Thumb mode, that's often not true,
so the calculations for when alignment padding will be present get thrown off,
ultimately leading to out of range constant pool entry references. Making
more conservative assumptions that padding may be necessary when inline asm
is present avoids this situation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89403 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMConstantIslandPass.cpp