diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-04-27 18:27:13 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-04-27 18:27:13 +0000 |
commit | 185ea1e2aad88b13c3978197851da078601afff3 (patch) | |
tree | 0632790daba7a9d9dc7542657e5b24bd582e03a6 /lib/Target/ARM/ARMConstantIslandPass.cpp | |
parent | fdc9692f9763a7ffd1bbcadc01445db33fb468de (diff) | |
download | llvm-185ea1e2aad88b13c3978197851da078601afff3.tar.gz llvm-185ea1e2aad88b13c3978197851da078601afff3.tar.bz2 llvm-185ea1e2aad88b13c3978197851da078601afff3.tar.xz |
Doh. ARM::LEApcrel is a single instruction MI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMConstantIslandPass.cpp')
-rw-r--r-- | lib/Target/ARM/ARMConstantIslandPass.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Target/ARM/ARMConstantIslandPass.cpp b/lib/Target/ARM/ARMConstantIslandPass.cpp index e9ccf04fee..ba74c11552 100644 --- a/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/lib/Target/ARM/ARMConstantIslandPass.cpp @@ -874,11 +874,9 @@ bool ARMConstantIslands::HandleConstantPoolUser(MachineFunction &Fn, // Compute this only once, it's expensive unsigned UserOffset = GetOffsetOf(UserMI) + (isThumb ? 4 : 8); - // Special cases: LEApcrel and tLEApcrel are two instructions MI's. The - // actual user is the second instruction. - if (UserMI->getOpcode() == ARM::LEApcrel) - UserOffset += 4; - else if (UserMI->getOpcode() == ARM::tLEApcrel) + // Special case: tLEApcrel are two instructions MI's. The actual user is the + // second instruction. + if (UserMI->getOpcode() == ARM::tLEApcrel) UserOffset += 2; // See if the current entry is within range, or there is a clone of it |