[PATCH] D118415: AMDGPU: Reserve v32 if we may need to copy between AGPRs on gfx908

Christudasan Devadasan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 29 06:16:05 PST 2022


cdevadas added a comment.

In D118415#3280633 <https://reviews.llvm.org/D118415#3280633>, @rampitec wrote:

> In D118415#3280314 <https://reviews.llvm.org/D118415#3280314>, @cdevadas wrote:
>
>> I guess disallowing direct agpr -> agpr copy for gfx908 early from instruction selection would be a better fix. I am anyway working on a patch to avoid direct sgpr -> agpr copies. In that way, we could avoid Scavenger altogether while lowering COPY instructions.
>
> Note though copies are created in many passes.

Ah, the copies during register coalescer can't be avoided. Never mind.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118415/new/

https://reviews.llvm.org/D118415



More information about the llvm-commits mailing list