mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 14:36:34 +00:00
Fix the offset values for these memoperands. For frame objects, the
PseudoSourceValue already effectively represents the offset from the frame base, so the actual offset should not be added to it. llvm-svn: 82465
This commit is contained in:
parent
1d9ca20bf5
commit
cca0e25a9e
@ -115,7 +115,7 @@ addFrameReference(const MachineInstrBuilder &MIB, int FI, int Offset = 0) {
|
||||
Flags |= MachineMemOperand::MOStore;
|
||||
MachineMemOperand MMO(PseudoSourceValue::getFixedStack(FI),
|
||||
Flags,
|
||||
MFI.getObjectOffset(FI) + Offset,
|
||||
Offset,
|
||||
MFI.getObjectSize(FI),
|
||||
MFI.getObjectAlignment(FI));
|
||||
return addOffset(MIB.addFrameIndex(FI), Offset)
|
||||
|
@ -144,7 +144,7 @@ addFrameReference(const MachineInstrBuilder &MIB, int FI, int Offset = 0) {
|
||||
Flags |= MachineMemOperand::MOStore;
|
||||
MachineMemOperand MMO(PseudoSourceValue::getFixedStack(FI),
|
||||
Flags,
|
||||
MFI.getObjectOffset(FI) + Offset,
|
||||
Offset,
|
||||
MFI.getObjectSize(FI),
|
||||
MFI.getObjectAlignment(FI));
|
||||
return addOffset(MIB.addFrameIndex(FI), Offset)
|
||||
|
Loading…
Reference in New Issue
Block a user