Convert COPY instructions into KILLs if they have implicit defs.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 30 Nov 2012 23:53:00 +0000 (23:53 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 30 Nov 2012 23:53:00 +0000 (23:53 +0000)
commit3e77747eba2173521d027033952b9a25785c7409
treea9f7f609821c7ea9933be91c184c9fe1c183344c
parenta3959b6d69893ad6acc18226f4fc38dc377ac739
Convert COPY instructions into KILLs if they have implicit defs.

MachineCopyPropagation doesn't understand super-register liveness well
enough to be able to remove implicit defs of super-registers.

This fixes a problem in ARM/2012-01-26-CopyPropKills.ll that is exposed
by an future TwoAddressInstructionPass change. The KILL instructions are
removed before the machine code is emitted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169060 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineCopyPropagation.cpp