[llvm] [SelectionDAG] Use unaligned store to move AVX registers onto stack for `extractelement` (PR #78422)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 22 09:50:36 PST 2024


================
@@ -1377,6 +1378,19 @@ void SelectionDAGLegalize::LegalizeOp(SDNode *Node) {
   }
 }
 
+// Helper function that generates an MMO that considers the alignment of the
+// stack, and the size of the stack object
+MachineMemOperand *getStackAlignedMMO(SDValue &StackPtr, MachineFunction &MF) {
----------------
RKSimon wrote:

Don't bother passing by ref - `SDValue StackPtr`

https://github.com/llvm/llvm-project/pull/78422


More information about the llvm-commits mailing list