[PATCH] D152832: [AMDGPU] Fix register class for a subreg in GCNRewritePartialRegUses.

Valery Pykhtin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 13 09:49:26 PDT 2023


vpykhtin created this revision.
vpykhtin added a reviewer: arsenm.
Herald added subscribers: foad, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
vpykhtin requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

1. Improved code that deduces register class from instruction definitions.

Previously if some instruction didn't contain a reg class for an operand it was
condsidered as no information on register class even if other instructions
specified the class.

2. Added check on required size of resulting register because in some cases

classes with smaller registers had been selected (for example VReg_1).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152832

Files:
  llvm/lib/Target/AMDGPU/GCNRewritePartialRegUses.cpp
  llvm/test/CodeGen/AMDGPU/rewrite-partial-reg-uses-gen.mir
  llvm/test/CodeGen/AMDGPU/rewrite-partial-reg-uses.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152832.530950.patch
Type: text/x-patch
Size: 17233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230613/00949a51/attachment.bin>


More information about the llvm-commits mailing list