Page MenuHomePhabricator

AMDGPU: Don't kill super-register with overlapping copy

Authored by arsenm on Thu, Oct 15, 3:07 PM.



This would end up killing part of the result super-register, resulting
in a verifier error on a later use of the overlapping registers. We
could add kills of any non-aliasing registers, but we should be moving
away from relying on kill flags.

Diff Detail

Event Timeline

arsenm created this revision.Thu, Oct 15, 3:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptThu, Oct 15, 3:07 PM
arsenm requested review of this revision.Thu, Oct 15, 3:07 PM
rampitec accepted this revision.Thu, Oct 15, 3:15 PM

LGTM, although it might require checking liveness of all aliasing registers.


It could be some other unrelated superreg?

This revision is now accepted and ready to land.Thu, Oct 15, 3:15 PM
arsenm added inline comments.Thu, Oct 15, 3:18 PM

If it's unrelated, we can kill the original source like was done before

rampitec added inline comments.Thu, Oct 15, 3:20 PM

Say the source is v[0:1] and we are killing it. But there is somewhere v[1:2] used, not in this instruction. We will kill that v[1:2] as well, right?

arsenm added inline comments.Thu, Oct 15, 3:32 PM

It kills the v1 portion, so a later instruction would be reading an undef value