[AMDGPU] Prevent Machine Copy Propagation from replacing live copy with the dead one
authorAlexander Timofeev <Alexander.Timofeev@amd.com>
Mon, 16 Oct 2017 14:35:29 +0000 (14:35 +0000)
committerAlexander Timofeev <Alexander.Timofeev@amd.com>
Mon, 16 Oct 2017 14:35:29 +0000 (14:35 +0000)
commit3828242c7e6527aaacff32f0c42b0e0fd37a20a6
tree5c272ccc509575bb0c7334ce6d7f7571e55e622d
parent259b190f0dfe1f076c5fdf080c9beb55a37945c7
[AMDGPU] Prevent Machine Copy Propagation from replacing live copy with the dead one

Differential revision: https://reviews.llvm.org/D38754

llvm-svn: 315908
llvm/lib/CodeGen/MachineCopyPropagation.cpp
llvm/test/CodeGen/AMDGPU/dead_copy.mir [new file with mode: 0644]