[llvm-branch-commits] [llvm-branch] r89474 - /llvm/branches/Apple/Leela-M1/lib/Target/ARM/ARMConstantIslandPass.cpp
Jim Grosbach
grosbach at apple.com
Fri Nov 20 11:38:24 PST 2009
Author: grosbach
Date: Fri Nov 20 13:38:24 2009
New Revision: 89474
URL: http://llvm.org/viewvc/llvm-project?rev=89474&view=rev
Log:
merge 89473
Modified:
llvm/branches/Apple/Leela-M1/lib/Target/ARM/ARMConstantIslandPass.cpp
Modified: llvm/branches/Apple/Leela-M1/lib/Target/ARM/ARMConstantIslandPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela-M1/lib/Target/ARM/ARMConstantIslandPass.cpp?rev=89474&r1=89473&r2=89474&view=diff
==============================================================================
--- llvm/branches/Apple/Leela-M1/lib/Target/ARM/ARMConstantIslandPass.cpp (original)
+++ llvm/branches/Apple/Leela-M1/lib/Target/ARM/ARMConstantIslandPass.cpp Fri Nov 20 13:38:24 2009
@@ -232,12 +232,15 @@
(BBOffsets[MBBId]%4 != 0 && BBSizes[MBBId]%4 != 0));
}
}
-#endif
for (unsigned i = 0, e = CPUsers.size(); i != e; ++i) {
CPUser &U = CPUsers[i];
unsigned UserOffset = GetOffsetOf(U.MI) + (isThumb ? 4 : 8);
- assert (CPEIsInRange(U.MI, UserOffset, U.CPEMI, U.MaxDisp, U.NegOk, true));
+ unsigned CPEOffset = GetOffsetOf(U.CPEMI);
+ unsigned Disp = UserOffset < CPEOffset ? CPEOffset - UserOffset :
+ UserOffset - CPEOffset;
+ assert(Disp <= U.MaxDisp || "Constant pool entry out of range!");
}
+#endif
}
/// print block size and offset information - debugging
More information about the llvm-branch-commits
mailing list