[PATCH] D115366: AMDGPU: Mark scc defs dead in SGPR to VMEM path for no free SGPRs

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 8 11:14:23 PST 2021


arsenm created this revision.
arsenm added reviewers: rampitec, sebastian-ne, foad, critson, scott.linder.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, qcolombet.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

This introduces verifier errors into this broken situation which we do
not handle correctly, which is better than being silently
miscompiled. For the emergency stack slot, the scavenger likes to move
the restore instruction as late as possible, which ends up separating
the SCC def from the conditional branch.


https://reviews.llvm.org/D115366

Files:
  llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
  llvm/test/CodeGen/AMDGPU/scc-clobbered-sgpr-to-vmem-spill.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115366.392841.patch
Type: text/x-patch
Size: 6189 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211208/a205b9b6/attachment.bin>


More information about the llvm-commits mailing list