Fix PR10277.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 5 Jul 2011 15:38:41 +0000 (15:38 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 5 Jul 2011 15:38:41 +0000 (15:38 +0000)
commit9693d4c3f0d0e8c91e4748eb1c18799b1de7551c
tree6eea6d38ca4f7fbe96131a5ddb11c263ded7e8a9
parent2b0f4abfbe1c651fe6bd233bf89373d276c535a8
Fix PR10277.

Remat during spilling triggers dead code elimination. If a phi-def
becomes unused, that may also cause live ranges to split into separate
connected components.

This type of splitting is different from normal live range splitting. In
particular, there may not be a common original interval.

When the split range is its own original, make sure that the new
siblings are also their own originals. The range being split cannot be
used as an original since it doesn't cover the new siblings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134413 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/InlineSpiller.cpp
lib/CodeGen/LiveRangeEdit.cpp
test/CodeGen/X86/crash.ll