Add LiveIntervals::shrinkToUses().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 8 Feb 2011 00:03:05 +0000 (00:03 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 8 Feb 2011 00:03:05 +0000 (00:03 +0000)
commit11513e5d1e1b40e6113668e4b4357596f33fa6c6
tree3e895ed488d52c81b74833ef0cb8296d0d5dc09e
parent33828bcb24176aae72afac0e4953e4b7f9560ef1
Add LiveIntervals::shrinkToUses().

After uses of a live range are removed, recompute the live range to only cover
the remaining uses. This is necessary after rematerializing the value before
some (but not all) uses.

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