[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)
commitfcc897cc45cba6de6a084d9aa6355b6e29fc2c6a
tree9bbd42b8d19ca407a5548ad315be8a61c9f1506f
parente85ccd42272a8cb775df9926cf654d192d35afb9
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232142 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineCopyPropagation.cpp
test/CodeGen/AArch64/machine-copy-prop.ll [new file with mode: 0644]