Bug fix for PR1279. When isDead is propagate by copy coalescing, we keep length
authorEvan Cheng <evan.cheng@apple.com>
Fri, 30 Mar 2007 20:18:35 +0000 (20:18 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 30 Mar 2007 20:18:35 +0000 (20:18 +0000)
commit2f524575396b740b8bdae076b5711e602e82f834
tree495426b7a45ef01a5b31e0d2614fc9ae915aaa4a
parentf2c28f863b82e33333ee4cec07e6a4f1f11d0a55
Bug fix for PR1279. When isDead is propagate by copy coalescing, we keep length
of dead def live interval at 1 to avoid multiple def's targeting the same
register. The previous patch missed a case where the source operand is live-in.
In that case, remove the whole interval.

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