OSDN Git Service

Add a 2 byte safety margin in offset computations.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 31 Mar 2012 00:06:44 +0000 (00:06 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 31 Mar 2012 00:06:44 +0000 (00:06 +0000)
commit3ee3661f8f10e7f82094a89c40d9118630ab0a40
tree8b3ef8f008ea464be26d628d86b590403daedaf5
parent101c03a8c9042781b6c9ba1fcc366e14fc8534ce
Add a 2 byte safety margin in offset computations.

ARMConstantIslandPass still has bugs where jump table compression can
cause constant pool entries to go out of range.

Add a safety margin of 2 bytes when placing constant islands, but use
the real max displacement for verification.

<rdar://problem/11156595>

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