Clear kill flags before propagating a copy.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 26 Jan 2012 17:52:15 +0000 (17:52 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 26 Jan 2012 17:52:15 +0000 (17:52 +0000)
commit1a96c914315b0286d84c507d696484e2c95875a4
tree58b1f0a6bb6afe302f820c7970a4e6fe1cb5d1b7
parentef4d3ebe2a36ebfd9370e1efbe74dff13f64c40f
Clear kill flags before propagating a copy.

The live range of the source register may be extended when a redundant
copy is eliminated. Make sure any kill flags between the two copies are
cleared.

This fixes PR11765.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149069 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineCopyPropagation.cpp
lib/CodeGen/MachineInstr.cpp
test/CodeGen/ARM/2012-01-26-CopyPropKills.ll [new file with mode: 0644]