[MachineCopyPropagation] Handle propagation of undef copies
authorCarl Ritson <carl.ritson@amd.com>
Thu, 7 Oct 2021 10:36:10 +0000 (19:36 +0900)
committerCarl Ritson <carl.ritson@amd.com>
Thu, 7 Oct 2021 11:34:27 +0000 (20:34 +0900)
commitb5d6ad20e182318b2048a923eac56a198250ed0a
treec1ad67d5941c81930228d2abdd4e02280c8d3e92
parent322e13b91aac23ab324c3dcbbcfe8e73894f4c28
[MachineCopyPropagation] Handle propagation of undef copies

When propagating undefined copies the undef flag must also be
propagated.

Reviewed By: foad

Differential Revision: https://reviews.llvm.org/D111219
llvm/lib/CodeGen/MachineCopyPropagation.cpp
llvm/test/CodeGen/AMDGPU/undef-copy-propagation.mir [new file with mode: 0644]