forked from OSchip/llvm-project
Don't override the var from the enclosing scope.
When doing copy/paste/modify, it's apparently rather important to remember the 'modify' bit... llvm-svn: 112075
This commit is contained in:
parent
981463d670
commit
0a84487fa7
|
@ -1397,7 +1397,7 @@ getFrameIndexInstrOffset(MachineInstr *MI, int Idx) const {
|
||||||
case ARMII::AddrMode5: {
|
case ARMII::AddrMode5: {
|
||||||
// VFP address mode.
|
// VFP address mode.
|
||||||
const MachineOperand &OffOp = MI->getOperand(Idx+1);
|
const MachineOperand &OffOp = MI->getOperand(Idx+1);
|
||||||
int InstrOffs = ARM_AM::getAM5Offset(OffOp.getImm());
|
InstrOffs = ARM_AM::getAM5Offset(OffOp.getImm());
|
||||||
if (ARM_AM::getAM5Op(OffOp.getImm()) == ARM_AM::sub)
|
if (ARM_AM::getAM5Op(OffOp.getImm()) == ARM_AM::sub)
|
||||||
InstrOffs = -InstrOffs;
|
InstrOffs = -InstrOffs;
|
||||||
Scale = 4;
|
Scale = 4;
|
||||||
|
@ -1593,7 +1593,7 @@ bool ARMBaseRegisterInfo::isFrameOffsetLegal(const MachineInstr *MI,
|
||||||
case ARMII::AddrMode5: {
|
case ARMII::AddrMode5: {
|
||||||
// VFP address mode.
|
// VFP address mode.
|
||||||
const MachineOperand &OffOp = MI->getOperand(i+1);
|
const MachineOperand &OffOp = MI->getOperand(i+1);
|
||||||
int InstrOffs = ARM_AM::getAM5Offset(OffOp.getImm());
|
InstrOffs = ARM_AM::getAM5Offset(OffOp.getImm());
|
||||||
if (ARM_AM::getAM5Op(OffOp.getImm()) == ARM_AM::sub)
|
if (ARM_AM::getAM5Op(OffOp.getImm()) == ARM_AM::sub)
|
||||||
InstrOffs = -InstrOffs;
|
InstrOffs = -InstrOffs;
|
||||||
NumBits = 8;
|
NumBits = 8;
|
||||||
|
|
Loading…
Reference in New Issue