[all-commits] [llvm/llvm-project] cd66d7: [Hexagon][MIR] Serialize HexagonMachineFunctionInf...

pkarveti via All-commits all-commits at lists.llvm.org
Wed Apr 8 08:42:43 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd66d79be19b6db00500ba4508b3946ef1caec88
      https://github.com/llvm/llvm-project/commit/cd66d79be19b6db00500ba4508b3946ef1caec88
  Author: pkarveti <pkarveti at qti.qualcomm.com>
  Date:   2026-04-08 (Wed, 08 Apr 2026)

  Changed paths:
    M llvm/lib/Target/Hexagon/HexagonMachineFunctionInfo.cpp
    M llvm/lib/Target/Hexagon/HexagonMachineFunctionInfo.h
    M llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp
    M llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp
    M llvm/lib/Target/Hexagon/HexagonTargetMachine.h
    M llvm/test/CodeGen/Hexagon/aligna-prologue-expansion.mir

  Log Message:
  -----------
  [Hexagon][MIR] Serialize HexagonMachineFunctionInfo::StackAlignBaseReg to MIR (#190003)

This patch adds serialization of HexagonMachineFunctionInfo::StackAlignBaseReg
into MIR. This field stores the physical register used as the aligned-stack base pointer
when a function has both variable-sized stack objects and requires stack
alignment greater than the default.

This replaces the workaround from commit 2e10b6299591 ("[Hexagon] Add AP
register to liveins when used for frame index access") which manually added
AP to liveins. That approach was incorrect because it only updated one
block without updating predecessors, breaking liveness invariants.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list