mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 10:04:33 +00:00
Noticed this on inspection, fix and update some comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120447 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
55ee75d571
commit
06a86da323
@ -933,12 +933,13 @@ bool ARMFastISel::ARMEmitStore(EVT VT, unsigned SrcReg, Address &Addr) {
|
|||||||
MachineMemOperand::MOLoad,
|
MachineMemOperand::MOLoad,
|
||||||
MFI.getObjectSize(FI),
|
MFI.getObjectSize(FI),
|
||||||
MFI.getObjectAlignment(FI));
|
MFI.getObjectAlignment(FI));
|
||||||
// LDRH needs an additional operand.
|
// ARM::STRH needs an additional operand.
|
||||||
if (!isThumb && VT.getSimpleVT().SimpleTy == MVT::i16)
|
if (!isThumb && VT.getSimpleVT().SimpleTy == MVT::i16)
|
||||||
AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
|
AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
|
||||||
TII.get(StrOpc))
|
TII.get(StrOpc))
|
||||||
.addReg(SrcReg, getKillRegState(true))
|
.addReg(SrcReg, getKillRegState(true))
|
||||||
.addFrameIndex(FI).addImm(Offset).addMemOperand(MMO));
|
.addFrameIndex(FI).addReg(0).addImm(Offset)
|
||||||
|
.addMemOperand(MMO));
|
||||||
else
|
else
|
||||||
AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
|
AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
|
||||||
TII.get(StrOpc))
|
TII.get(StrOpc))
|
||||||
@ -948,7 +949,7 @@ bool ARMFastISel::ARMEmitStore(EVT VT, unsigned SrcReg, Address &Addr) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ARM::LDRH needs an additional operand.
|
// ARM::STRH needs an additional operand.
|
||||||
if (!isThumb && VT.getSimpleVT().SimpleTy == MVT::i16)
|
if (!isThumb && VT.getSimpleVT().SimpleTy == MVT::i16)
|
||||||
AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
|
AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
|
||||||
TII.get(StrOpc))
|
TII.get(StrOpc))
|
||||||
|
Loading…
Reference in New Issue
Block a user