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 | 559c546453e6828df4762932b9959ad615287d5d (patch) | |
tree | 8d0de972a557214ae94d7c3918552d54985b2213 /llvm/lib/Target/ARM/ARMConstantIslandPass.cpp | |
parent | 62f65468bc4eaa5cc919bbc3202f81d966e5b2cf (diff) | |
download | bcm5719-llvm-559c546453e6828df4762932b9959ad615287d5d.tar.gz bcm5719-llvm-559c546453e6828df4762932b9959ad615287d5d.zip |
Doh. ARM::LEApcrel is a single instruction MI.
llvm-svn: 36513
Diffstat (limited to 'llvm/lib/Target/ARM/ARMConstantIslandPass.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantIslandPass.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp index e9ccf04fee0..ba74c115524 100644 --- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/llvm/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 |