Lazily defer duplicating the live interval we are splitting until we know it is
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 6 Aug 2010 22:17:33 +0000 (22:17 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 6 Aug 2010 22:17:33 +0000 (22:17 +0000)
commit5eb308b9448ee5b14fac26c0533eac481bc28471
treec0e36f48b6e73127b81d74482435b2a3149b0c02
parent4945dd8314c4cbf03271ff622b2ae777975c8309
Lazily defer duplicating the live interval we are splitting until we know it is
necessary.

Sometimes, live range splitting doesn't shrink the current interval, but simply
changes some instructions to use a new interval. That makes the original more
suitable for spilling. In this case, we don't need to duplicate the original.

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