Changes in directory llvm/lib/Target/ARM:
ARMConstantIslandPass.cpp updated: 1.37 -> 1.38 --- Log message: Doh. ARM::LEApcrel is a single instruction MI. --- Diffs of the changes: (+3 -5) ARMConstantIslandPass.cpp | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) Index: llvm/lib/Target/ARM/ARMConstantIslandPass.cpp diff -u llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.37 llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.38 --- llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.37 Fri Apr 27 03:14:15 2007 +++ llvm/lib/Target/ARM/ARMConstantIslandPass.cpp Fri Apr 27 13:27:13 2007 @@ -874,11 +874,9 @@ // 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 _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits