[llvm-commits] CVS: llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
Evan Cheng
evan.cheng at apple.com
Wed Jan 31 15:35:34 PST 2007
Changes in directory llvm/lib/Target/ARM:
ARMConstantIslandPass.cpp updated: 1.17 -> 1.18
---
Log message:
Handle an interesting corner case: the constpool_entry being reference is two
instructions away, i.e. its address is equal to PC.
%r0 = tLDRpci <cp#0>
bx
CONSTPOOL_ENTRY 0 <cp#0>, 4
---
Diffs of the changes: (+2 -2)
ARMConstantIslandPass.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
diff -u llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.17 llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.18
--- llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:1.17 Wed Jan 31 13:57:44 2007
+++ llvm/lib/Target/ARM/ARMConstantIslandPass.cpp Wed Jan 31 17:35:18 2007
@@ -472,7 +472,7 @@
<< " at offset " << int(UserOffset-CPEOffset) << "\t"
<< *MI);
- if (UserOffset < CPEOffset) {
+ if (UserOffset <= CPEOffset) {
// User before the CPE.
if (CPEOffset-UserOffset <= MaxDisp)
return true;
@@ -563,7 +563,7 @@
<< " at offset " << int(BrOffset-DestOffset) << "\t"
<< *MI);
- if (BrOffset < DestOffset) {
+ if (BrOffset <= DestOffset) {
if (DestOffset - BrOffset < MaxDisp)
return true;
} else {
More information about the llvm-commits
mailing list