[llvm] [Hexagon] Refresh stack aligna after late HVX spill (PR #204660)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 22 04:48:35 PDT 2026
================
@@ -599,6 +599,19 @@ void HexagonFrameLowering::insertPrologueInBlock(MachineBasicBlock &MBB,
bool AlignStack = (MaxAlign > getStackAlign());
+ // PS_aligna was emitted during instruction selection with the MaxAlign known
----------------
arsenm wrote:
Register reservation cannot reasonably depend on the presence of an instruction. getReservedRegs itself can inspect the frame info to check if a register will need to be reserved if. i.e., the needsAligna checks done in selection should be directly performed in getReservedRegs
https://github.com/llvm/llvm-project/pull/204660
More information about the llvm-commits
mailing list