When inserting copies during splitting, always use the parent register as the
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 1 Nov 2010 23:59:48 +0000 (23:59 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 1 Nov 2010 23:59:48 +0000 (23:59 +0000)
commit3d4114c464d1ec6c9a6088e04d2156f72c4b42ce
tree02c66ad48606d38e0b462a3562c206ab21ecf745
parente66b7ebfb426c7ed9bc911e9708321e2d8510b41
When inserting copies during splitting, always use the parent register as the
source, and let rewrite() clean it up.

This way, kill flags on the inserted copies are fixed as well during rewrite().

We can't just assume that all the copies we insert are going to be kills since
critical edges into loop headers sometimes require both source and dest to be
live out of a block.

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