Check that a live range exists before shortening it. This fixes PR8989.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 20 Jan 2011 06:20:02 +0000 (06:20 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 20 Jan 2011 06:20:02 +0000 (06:20 +0000)
commitfd50d76ff854e8e60aa22b0db609de359ff3a576
tree8e1d386f397a8139925f2afe4ac7a4644179ca61
parentb908a009cf3d85586c6ca25d1de035b7d2b030b5
Check that a live range exists before shortening it. This fixes PR8989.

The live range may have been deleted earlier because of rematerialization.

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