Implement -split-spill-mode=size.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 13 Sep 2011 22:22:39 +0000 (22:22 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 13 Sep 2011 22:22:39 +0000 (22:22 +0000)
commitb21abfed813fa46976f896439ca2f9fbd2eba9ba
treed16f95b2568b5124ac4b5871831efbc14919e868
parent596f447467b35d7513c997cd9098026938676461
Implement -split-spill-mode=size.

Whenever the complement interval is defined by multiple copies of the
same value, hoist those back-copies to the nearest common dominator.

This ensures that at most one copy is inserted per value in the
complement inteval, and no phi-defs are needed.

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