This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Fix scc->vcc copy handling
ClosedPublic

Authored by arsenm on Jun 25 2019, 5:51 PM.

Details

Reviewers
tstellar
nhaehnle
Summary

This was checking the size of the register with the value of the size,
which happens to be exec. Also fix assuming VCC is 64-bit to fix
wave32.

Also remove some untested handling for physical registers which is
skipped. This doesn't insert the V_CNDMASK_B32 if SCC is the physical
copy source. I'm not sure if this should be trying to handle this
special case instead of dealing with this in copyPhysReg.

Diff Detail

Event Timeline

arsenm created this revision.Jun 25 2019, 5:51 PM
nhaehnle accepted this revision.Jul 1 2019, 2:48 AM

LGTM

This revision is now accepted and ready to land.Jul 1 2019, 2:48 AM
arsenm closed this revision.Jul 1 2019, 6:22 AM

r364761