[PATCH] D131825: (Reland) [fastalloc] Support allocating specific register class in fastalloc

LuoYuanke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 12 20:45:11 PDT 2022


LuoYuanke created this revision.
Herald added subscribers: kosarev, kerbowa, hiraditya, jvesely, qcolombet, MatzeB.
Herald added a project: All.
LuoYuanke requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Reland commit 719658d078c4 <https://reviews.llvm.org/rG719658d078c4093d1ee716fb65ae94673df7b22b>

The base RA support infrastructure that only allow a specific register
class be allocated in RA pss. Since greedy RA, basic RA derived from
base RA, they all allow allocating specific register class. Fast RA
doesn't support allocating register for specific register class. This
patch is to enable ShouldAllocateClass in fast RA, so that it can
support allocating register for specific register class.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131825

Files:
  llvm/lib/CodeGen/RegAllocFast.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/image-waterfall-loop-O0.ll
  llvm/test/CodeGen/AMDGPU/cf-loop-on-constant.ll
  llvm/test/CodeGen/AMDGPU/collapse-endcf.ll
  llvm/test/CodeGen/AMDGPU/control-flow-fastregalloc.ll
  llvm/test/CodeGen/AMDGPU/indirect-addressing-term.ll
  llvm/test/CodeGen/AMDGPU/mubuf-legalize-operands.ll
  llvm/test/CodeGen/AMDGPU/no-source-locations-in-prologue.ll
  llvm/test/CodeGen/AMDGPU/sgpr-spills-split-regalloc.ll
  llvm/test/CodeGen/AMDGPU/wwm-reserved-spill.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131825.452369.patch
Type: text/x-patch
Size: 55459 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220813/e410f2b7/attachment.bin>


More information about the llvm-commits mailing list