[PATCH] D109300: [AMDGPU] Make vector superclasses allocatable
Christudasan Devadasan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 13 19:45:20 PDT 2021
cdevadas added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:2789
+ const TargetRegisterClass *RC = RI.getRegClassForReg(*MRI, DstReg);
+ bool IsVectorRegCopy = RI.hasVectorRegisters(RC);
+ unsigned NewOpc =
----------------
arsenm wrote:
> This logically doesn't flow right. This shouldn't be checking hasVectorRegisters, and just use isVGPR. You override this decision later with the AGPR class
That check was added to consider AV classes too. The opcode is later changed to V_ACCVGPR_WRITE_B32_e64 if t is AGPR only class.
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