Don't accidentally leave small gaps in the live ranges when leaving the active
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 19 Jan 2011 23:14:56 +0000 (23:14 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 19 Jan 2011 23:14:56 +0000 (23:14 +0000)
commit92e6939d29d206b5f094e0dcc4febf909f77a134
tree5d4bb28d05fb137bd1ead7c5d2321e73276d7ec9
parent4121e8a0bd56a63e2d5186d99b62c7bd6afc9b5d
Don't accidentally leave small gaps in the live ranges when leaving the active
interval after an instruction. The leaveIntvAfter() method only adds liveness
from the instruction's boundary index to the inserted copy.

Ideally, SplitKit should be smarter about this, perhaps by combining useIntv()
and leaveIntvAfter() into one method that guarantees continuity.

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