Don't use nextIndex to check for live out of instruction.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 5 Oct 2010 20:36:25 +0000 (20:36 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 5 Oct 2010 20:36:25 +0000 (20:36 +0000)
commitfc60d7729bb5b63b7d61e370e51bd05e9a18b8bc
tree4f888fcd501203f05e1c46fb89982c268b7ea0ff
parent9c3aa4d4cd8227858fbb4b84c6ea88ff9da2ba99
Don't use nextIndex to check for live out of instruction.
Insert copy after defining instruction.

Fix LiveIntervalMap::extendTo to properly handle live segments starting before
the current basic block.

Make sure the open live range is extended to the inserted copy's use slot.

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