[AMDGPU] Prevent Machine Copy Propagation from replacing live copy with the dead one
authorAlexander Timofeev <Alexander.Timofeev@amd.com>
Fri, 10 Nov 2017 12:21:10 +0000 (12:21 +0000)
committerAlexander Timofeev <Alexander.Timofeev@amd.com>
Fri, 10 Nov 2017 12:21:10 +0000 (12:21 +0000)
commit28da06778fb1f91f6fe854d034d75cc44a817d94
tree259c74f17f0b8b91f94bbf6b6c26208268342b38
parent13cc995c3d7ce55326f255718ee1f09fb4ca8bbb
[AMDGPU] Prevent Machine Copy Propagation from replacing live copy with the dead one

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

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