[PATCH] D109300: [AMDGPU] Make vector superclasses allocatable

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 24 13:36:53 PDT 2021


arsenm added a comment.

In D109300#3019936 <https://reviews.llvm.org/D109300#3019936>, @cdevadas wrote:

> In D109300#3018937 <https://reviews.llvm.org/D109300#3018937>, @rampitec wrote:
>
>> Thanks. FoldImmediate() and Global ISel seems to be last issue to me.
>
> The MAIInst uses AVSrc_32 for src0 & src1 operands.
> https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/AMDGPU/VOP3PInstructions.td#L378
>
> I am not sure we can do something to prevent GIsel from choosing AV classes here.
> Yes, the w/a in FoldImmediate was done to adjust the register class as per the opcode we choose.

Something is missing code to constrain or insert a constraining copy when the instructions are initially emitted


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109300



More information about the llvm-commits mailing list