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)
commitbb1e98318f942a43e18f4d923930ce4d54459b89
treeefc1f1d67226a0cd01078d3b621e96d0ff64ddb5
parent0517508c005df2c8682312744214ea8f65a2d226
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.

llvm-svn: 169060
llvm/lib/CodeGen/MachineCopyPropagation.cpp