When determining whether a pc relative branch / load displacement fits in the
authorEvan Cheng <evan.cheng@apple.com>
Wed, 31 Jan 2007 19:57:44 +0000 (19:57 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 31 Jan 2007 19:57:44 +0000 (19:57 +0000)
commitc0dbec7e1038ee60b8525eb1e8e3eaa6a839bd5b
treea7be2a3a5d7a6236be95bdf895138fc8fb1a8acc
parent4c3d3a99d5b667e1ea8b8e9a12525f5d168795e3
When determining whether a pc relative branch / load displacement fits in the
instruction field, adjust it for PC value (4 for thumb, 8 for arm).

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