Skip to content

Commit

Permalink
[DAG] getStackAlignedMMO - return the getMachineMemOperand result dir…
Browse files Browse the repository at this point in the history
…ectly (style). NFC.
  • Loading branch information
RKSimon committed Feb 4, 2024
1 parent d71ef3e commit 114a33b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1387,10 +1387,8 @@ static MachineMemOperand *getStackAlignedMMO(SDValue StackPtr,
int FI = cast<FrameIndexSDNode>(StackPtr)->getIndex();
MachinePointerInfo PtrInfo = MachinePointerInfo::getFixedStack(MF, FI);
uint64_t ObjectSize = isObjectScalable ? ~UINT64_C(0) : MFI.getObjectSize(FI);
MachineMemOperand *MMO = MF.getMachineMemOperand(
PtrInfo, MachineMemOperand::MOStore, ObjectSize, MFI.getObjectAlign(FI));

return MMO;
return MF.getMachineMemOperand(PtrInfo, MachineMemOperand::MOStore,
ObjectSize, MFI.getObjectAlign(FI));
}

SDValue SelectionDAGLegalize::ExpandExtractFromVectorThroughStack(SDValue Op) {
Expand Down

0 comments on commit 114a33b

Please sign in to comment.