[MachineCopyPropagation] Fix a bug causing incorrect removal for the instruction...
authorHao Liu <Hao.Liu@arm.com>
Fri, 13 Mar 2015 05:15:23 +0000 (05:15 +0000)
committerHao Liu <Hao.Liu@arm.com>
Fri, 13 Mar 2015 05:15:23 +0000 (05:15 +0000)
commit04183242b34d660cc5f265c329eca2fcb4d781e9
treeaeca4d7aaf4f299aa3febb54bf2efadf41206989
parent58d0e7ab79a33b2d8352765abbca2c03c34e09de
[MachineCopyPropagation] Fix a bug causing incorrect removal for the instruction sequences as follows
   %Q5_Q6<def> = COPY %Q2_Q3
   %D5<def> =
   %D3<def> =
   %D3<def> = COPY %D6     // Incorrectly removed in MachineCopyPropagation
   Using of %D3 results in incorrect result ...

   Reviewed in http://reviews.llvm.org/D8242

llvm-svn: 232142
llvm/lib/CodeGen/MachineCopyPropagation.cpp
llvm/test/CodeGen/AArch64/machine-copy-prop.ll [new file with mode: 0644]