forked from OSchip/llvm-project
parent
5dbf760e00
commit
b5932a5708
|
|
@ -112,7 +112,8 @@ eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
|
|||
MachineBasicBlock::iterator I) const {
|
||||
if (hasFP(MF)) {
|
||||
// If we have a frame pointer, turn the adjcallstackdown instruction into a
|
||||
// 'sub r1, r1, <amt>' and the adjcallstackup instruction into 'add r1, r1, <amt>'
|
||||
// 'sub r1, r1, <amt>' and the adjcallstackup instruction into
|
||||
// 'add r1, r1, <amt>'
|
||||
MachineInstr *Old = I;
|
||||
int Amount = Old->getOperand(0).getImmedValue();
|
||||
if (Amount != 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue