1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Doh. ARM::LEApcrel is a single instruction MI.

llvm-svn: 36513
This commit is contained in:
Evan Cheng 2007-04-27 18:27:13 +00:00
parent f9641d332a
commit 5f4f03b9b9

View File

@ -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