[PATCH] D149161: AMDGPU: Fix an assertion in SIOptimizeVGPRLiveRange

Nicolai Hähnle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 08:06:59 PDT 2023


nhaehnle created this revision.
nhaehnle added reviewers: ruiling, arsenm, foad.
Herald added subscribers: kosarev, StephenFan, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl, MatzeB.
Herald added a project: All.
nhaehnle requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

As the comment notes, the shader results in an INSERT_SUBREG with
"undef" (dead) operand in the Endif block. The register is considered
dead from a liveness analysis perspective. The correct thing to do seems
to be nothing: we keep the undef use of the register, the register
allocator should still be able to take the liveness into account
correctly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149161

Files:
  llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp
  llvm/test/CodeGen/AMDGPU/bug-deadlanes.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149161.516810.patch
Type: text/x-patch
Size: 7768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230425/ba81cc2f/attachment.bin>


More information about the llvm-commits mailing list