This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Enable predicated copy right from instruction selection
AbandonedPublic

Authored by cdevadas on Feb 10 2023, 9:26 AM.

Details

Reviewers
arsenm
rampitec
Summary

This patch would enable the predicated copy opcode by default
for AMDGPU right from the instruction selection. At certain
point after regalloc, they will be fixed. When for SGPR copies
they become regular COPY opcodes, for all vector copies, the
implicit exec use will be added still retaining the PRED_COPY
opcode. Based on the register class involved, later copyPhysReg
called during expand post-RA pseudos will lower all forms of
copy opcodes into respective target instructions.

Diff Detail