[llvm] 114a33b - [DAG] getStackAlignedMMO - return the getMachineMemOperand result directly (style). NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 4 06:02:04 PST 2024
Author: Simon Pilgrim
Date: 2024-02-04T14:01:55Z
New Revision: 114a33be4751328c549c6b8b05e9ece19e452189
URL: https://github.com/llvm/llvm-project/commit/114a33be4751328c549c6b8b05e9ece19e452189
DIFF: https://github.com/llvm/llvm-project/commit/114a33be4751328c549c6b8b05e9ece19e452189.diff
LOG: [DAG] getStackAlignedMMO - return the getMachineMemOperand result directly (style). NFC.
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 472b4a2d439a6..892bfbd62f0d0 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -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) {
More information about the llvm-commits
mailing list