[RegisterCoalescer] Make sure each live-range has only one component, as
authorQuentin Colombet <qcolombet@apple.com>
Wed, 6 May 2015 22:41:50 +0000 (22:41 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Wed, 6 May 2015 22:41:50 +0000 (22:41 +0000)
commitd15319f75f537a806f85f616a84423d63fa1b3d1
tree3eefe80d169a28af1c34743bb9ad31524e113cbb
parentb350776f0388f66073fa540ef7042db943e679ad
[RegisterCoalescer] Make sure each live-range has only one component, as
demanded by the machine verifier.
After shrinking a live-range to its uses, it is possible to create several
smaller live-ranges. When this happens, shrinkToUses returns true and we need to
split the different components into their own live-ranges.

The problem does not reproduce on any in-tree target but Jonas Paulsson
<jonas.paulsson@ericsson.com>, who reported the problem, checked that this patch
fixes the issue.

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