[llvm] [Codegen][LegalizeIntegerTypes] Improve shift through stack (PR #96151)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 19 06:26:26 PDT 2024
================
@@ -4574,20 +4584,29 @@ void DAGTypeLegalizer::ExpandIntRes_ShiftThroughStack(SDNode *N, SDValue &Lo,
Init = DAG.getNode(ISD::BUILD_PAIR, dl, StackSlotVT, AllZeros, Shiftee);
}
// And spill it into the stack slot.
- Ch = DAG.getStore(Ch, dl, Init, StackPtr, StackPtrInfo, StackSlotAlignment);
+ Ch = DAG.getStore(Ch, dl, Init, StackPtr, StackPtrInfo);
----------------
arsenm wrote:
This store is not getting the correct alignment set. The stack alignment should be the next argument if using the MachinePointerInfo overloads
https://github.com/llvm/llvm-project/pull/96151
More information about the llvm-commits
mailing list