[llvm-commits] CVS: llvm/lib/Target/ARM/ARMRegisterInfo.cpp
Evan Cheng
evan.cheng at apple.com
Tue Apr 3 14:31:38 PDT 2007
Changes in directory llvm/lib/Target/ARM:
ARMRegisterInfo.cpp updated: 1.84 -> 1.85
---
Log message:
Fixed a bug that causes codegen of noop like add r0, r0, #0.
---
Diffs of the changes: (+1 -1)
ARMRegisterInfo.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Target/ARM/ARMRegisterInfo.cpp
diff -u llvm/lib/Target/ARM/ARMRegisterInfo.cpp:1.84 llvm/lib/Target/ARM/ARMRegisterInfo.cpp:1.85
--- llvm/lib/Target/ARM/ARMRegisterInfo.cpp:1.84 Tue Mar 20 03:07:04 2007
+++ llvm/lib/Target/ARM/ARMRegisterInfo.cpp Tue Apr 3 16:31:21 2007
@@ -732,7 +732,7 @@
// a sequence of ADDri instructions. First though, pull as much of the imm
// into this ADDri as possible.
unsigned RotAmt = ARM_AM::getSOImmValRotate(Offset);
- unsigned ThisImmVal = Offset & ARM_AM::rotr32(0xFF, (32-RotAmt) & 31);
+ unsigned ThisImmVal = Offset & ARM_AM::rotr32(0xFF, RotAmt);
// We will handle these bits from offset, clear them.
Offset &= ~ThisImmVal;
More information about the llvm-commits
mailing list