[PATCH] D132717: [AArch64] Add an option to reserve physical registers from RA

Guozhi Wei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 25 22:23:57 PDT 2022


Carrot created this revision.
Carrot added reviewers: dmgreen, efriedma, kristof.beyls.
Herald added a subscriber: hiraditya.
Herald added a project: All.
Carrot requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch adds an option --reserve-regs-for-regalloc, so we can reserve a list of physical registers. These registers will not be used by register allocator, but can still be used as ABI requests such as passing arguments to function call.

Its main purpose is simulating high register pressure by reserving many physical registers. So it will be much easier to test and debug register allocation changes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132717

Files:
  llvm/include/llvm/CodeGen/TargetRegisterInfo.h
  llvm/lib/CodeGen/MachineRegisterInfo.cpp
  llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp
  llvm/lib/Target/AArch64/AArch64RegisterInfo.h
  llvm/lib/Target/AArch64/AArch64Subtarget.cpp
  llvm/lib/Target/AArch64/AArch64Subtarget.h
  llvm/test/CodeGen/AArch64/arm64-platform-reg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132717.455795.patch
Type: text/x-patch
Size: 10774 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220826/3fd3059b/attachment.bin>


More information about the llvm-commits mailing list