[llvm-branch-commits] [llvm] cd7990e - ARM: Mark GPRsp as not allocatable (#240935)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Nov 11 01:51:59 PST 2026
Author: Matt Arsenault
Date: 2026-11-10T19:31:53-08:00
New Revision: cd7990e8fe9781e211113320151d2004233b4821
URL: https://github.com/llvm/llvm-project/commit/cd7990e8fe9781e211113320151d2004233b4821
DIFF: https://github.com/llvm/llvm-project/commit/cd7990e8fe9781e211113320151d2004233b4821.diff
LOG: ARM: Mark GPRsp as not allocatable (#240935)
This only contains SP which is always reserved.
Added:
Modified:
llvm/lib/Target/ARM/ARMRegisterInfo.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMRegisterInfo.td b/llvm/lib/Target/ARM/ARMRegisterInfo.td
index 355e0775e5e55..a88f2d5dce4d0 100644
--- a/llvm/lib/Target/ARM/ARMRegisterInfo.td
+++ b/llvm/lib/Target/ARM/ARMRegisterInfo.td
@@ -320,6 +320,7 @@ def GPRwithZRnosp : RegisterClass<"ARM", [i32], 32, (sub GPRwithZR, SP)> {
// instructions to not have SP an an explicit argument. That makes
// frame index resolution a bit trickier, though.
def GPRsp : RegisterClass<"ARM", [i32], 32, (add SP)> {
+ let isAllocatable = 0;
let DiagnosticString = "operand must be a register sp";
}
More information about the llvm-branch-commits
mailing list