This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix verifier error with argument passed in CSR SGPR
ClosedPublic

Authored by arsenm on Feb 4 2021, 2:27 PM.

Details

Summary

We need to avoid setting the kill flag on the CSR spill if there's an
additional use of the register after the spill.

This does rely on consistency between the entry block liveins and the
MRI's function live ins, which is not something the verifier checks
now.

Diff Detail

Event Timeline

arsenm created this revision.Feb 4 2021, 2:27 PM
arsenm requested review of this revision.Feb 4 2021, 2:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 4 2021, 2:27 PM
Herald added a subscriber: wdng. · View Herald Transcript
rampitec accepted this revision.Feb 4 2021, 2:30 PM

LGTM

This revision is now accepted and ready to land.Feb 4 2021, 2:30 PM