[PATCH] D90721: [AMDGPU] Resolve pseudo registers at encoding uses

Joe Nash via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 3 14:45:47 PST 2020


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

Pseudo-registers allow different register encodings
between gpu generations. Make sure we resolve the
pseudo regs to real regs whenever we get their
hardware encoding.
Using the correct encodings revealed a register
bank conflict and an unnecessary write dependency.
Tests have been updated to match.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90721

Files:
  llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
  llvm/lib/Target/AMDGPU/GCNRegBankReassign.cpp
  llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
  llvm/lib/Target/AMDGPU/SIRegisterInfo.h
  llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.a16.dim.ll
  llvm/test/CodeGen/AMDGPU/atomic_optimizations_pixelshader.ll
  llvm/test/CodeGen/AMDGPU/flat-scratch.ll
  llvm/test/CodeGen/AMDGPU/llvm.amdgcn.image.sample.d16.dim.ll
  llvm/test/CodeGen/AMDGPU/llvm.amdgcn.image.sample.dim.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90721.302695.patch
Type: text/x-patch
Size: 20153 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201103/709e0f5a/attachment.bin>


More information about the llvm-commits mailing list