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

Danila Malyutin via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 22 10:21:04 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) {
----------------
danilaml wrote:

Also this function should be `static`

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


More information about the llvm-commits mailing list