This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Fix G_EXTRACT_VECTOR_ELT mapping for s-v case
ClosedPublic

Authored by arsenm on Jan 2 2020, 5:39 PM.

Details

Summary

If an SGPR vector is indexed with a VGPR, the actual indexing will be
done on the SGPR and produce an SGPR. A copy needs to be inserted
inside the waterwall loop to the VGPR result.

Diff Detail

Event Timeline

arsenm created this revision.Jan 2 2020, 5:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 2 2020, 5:39 PM
arsenm updated this revision to Diff 235988.Jan 2 2020, 6:53 PM

Use a V_MOV_B32 directly instead of a copy. The copy was sinking out of the waterfall loop

kerbowa accepted this revision.Jan 9 2020, 2:55 PM

LGTM

This revision is now accepted and ready to land.Jan 9 2020, 2:55 PM