[llvm] [AMDGPU] Hints for prefering allocating AGPR registers for buffer loads (PR #215697)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 12 05:39:26 PDT 2026
================
@@ -96,6 +119,16 @@ bool AMDGPUPrepareAGPRAllocImpl::run(MachineFunction &MF) {
bool Changed = false;
for (MachineBasicBlock &MBB : MF) {
for (MachineInstr &MI : MBB) {
+ if (BufferLoadPreferAGPR && TII.isMUBUF(MI) && MI.mayLoad() &&
----------------
arsenm wrote:
This is not encoding specific, any load and store is the same
https://github.com/llvm/llvm-project/pull/215697
More information about the llvm-commits
mailing list