This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix incorrectly deleting copies after spilling SGPR tuples
ClosedPublic

Authored by arsenm on Aug 28 2020, 12:44 PM.

Details

Summary

The implicit def of the super register would appear to kill any live
uses of components before the spill, and would be deleted by
MachineCopyPropagation. We need to add implicit uses of the super
register, similarly to what copyPhysReg does. VGPR tuples appear to be
correctly handled already. I need to double check the SGPR->memory
path.

Diff Detail

Event Timeline

arsenm created this revision.Aug 28 2020, 12:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2020, 12:44 PM
arsenm requested review of this revision.Aug 28 2020, 12:44 PM
rampitec accepted this revision.Aug 28 2020, 1:18 PM
This revision is now accepted and ready to land.Aug 28 2020, 1:18 PM