This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Mark scc defs dead in SGPR to VMEM path for no free SGPRs
ClosedPublic

Authored by arsenm on Dec 8 2021, 11:14 AM.

Details

Summary

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.

Diff Detail

Event Timeline

arsenm created this revision.Dec 8 2021, 11:14 AM
arsenm requested review of this revision.Dec 8 2021, 11:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2021, 11:14 AM
Herald added a subscriber: wdng. · View Herald Transcript
rampitec accepted this revision.Dec 8 2021, 11:25 AM
This revision is now accepted and ready to land.Dec 8 2021, 11:25 AM
foad added inline comments.Dec 9 2021, 2:15 AM
llvm/test/CodeGen/AMDGPU/scc-clobbered-sgpr-to-vmem-spill.ll
7

... as far down the block ...?