mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-26 20:57:15 +00:00
Fixed a bug that causes codegen of noop like add r0, r0, #0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35627 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
01deb9d91c
commit
b03eacdbf3
@ -732,7 +732,7 @@ void ARMRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
|
||||
// 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user