Treat clones the same as their origin.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 30 Mar 2011 02:52:39 +0000 (02:52 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 30 Mar 2011 02:52:39 +0000 (02:52 +0000)
commitf22ca3fe5f0cfbb832cf41270f97cf5c0134fd7b
treedb0733bc6370b0714ba03a280821bc5375b2d0ce
parent9f86e8054b5c29c82dbcff6fdb1dcefa122fe7ce
Treat clones the same as their origin.

When DCE clones a live range because it separates into connected components,
make sure that the clones enter the same register allocator stage as the
register they were cloned from.

For instance, clones may be split even when they where created during spilling.
Other registers created during spilling are not candidates for splitting or even
(re-)spilling.

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