This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Implement applyMappingImpl less incorrectly
ClosedPublic

Authored by arsenm on Jan 2 2020, 1:06 PM.

Details

Summary

We're checking the current register bank of the registers in the
instruction, but the mapping may have inserted cross bank copies and
is expecting to replace the registers.

We mostly get away with this currently, because VGPR->SGPR copies are
illegal, and we assume this won't happen. In a future change, we'll
start relying on more cross register bank copies being inserted, and
this starts to break down.

Diff Detail