[llvm-commits] CVS: llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
Evan Cheng
evan.cheng at apple.com
Fri Apr 27 11:27:31 PDT 2007
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
More information about the llvm-commits
mailing list