[PATCH] D113005: [AMDGPU] Fix subreg checks in S_MOV_B64_IMM_PSEUDO generation.

Abinav Puthan Purayil via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 2 04:30:28 PDT 2021


abinavpp created this revision.
abinavpp added reviewers: arsenm, foad, rampitec, vangthao.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
abinavpp requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

The function to generate S_MOV_B64_IMM_PSEUDO was recently modified to
optimize AGPR to AGPR copy but it broke the subreg tracking in the
original implementation. This change fixes the subreg tracking and adds
the necessary bail out conditions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D113005

Files:
  llvm/lib/Target/AMDGPU/GCNPreRAOptimizations.cpp
  llvm/test/CodeGen/AMDGPU/agpr-to-agpr-copy.mir
  llvm/test/CodeGen/AMDGPU/combine-sreg64-inits.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113005.384042.patch
Type: text/x-patch
Size: 17552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211102/a7b3ba6d/attachment.bin>


More information about the llvm-commits mailing list