[llvm] [CodeGen] Get stack alignment from TargetFrameLowering (PR #105477)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 02:35:01 PDT 2024
================
@@ -9241,9 +9242,10 @@ LegalizerHelper::lowerMemmove(MachineInstr &MI, Register Dst, Register Src,
// Don't promote to an alignment that would require dynamic stack
// realignment.
const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo();
- if (!TRI->hasStackRealignment(MF))
- while (NewAlign > Alignment && DL.exceedsNaturalStackAlignment(NewAlign))
- NewAlign = NewAlign.previous();
+ if (NewAlign > Alignment && !TRI->hasStackRealignment(MF)) {
+ const TargetFrameLowering *TFL = MF.getSubtarget().getFrameLowering();
----------------
arsenm wrote:
It's not intended. I don't know what the DataLayout one is even used for, it should change to match
https://github.com/llvm/llvm-project/pull/105477
More information about the llvm-commits
mailing list