diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-30 15:44:16 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-30 15:44:16 +0000 |
commit | dc37786595beedd0a68d8e2cbd91ae53ad58d133 (patch) | |
tree | 910098540a161ad8e6526a52179cc5c73ff17292 /lib/CodeGen/SimpleRegisterCoalescing.cpp | |
parent | f3b23188d5254829374587fdc5ca6f16fae945a9 (diff) |
Re-apply 56835 along with header file changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r-- | lib/CodeGen/SimpleRegisterCoalescing.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp index bdc37b16b6..86065f069f 100644 --- a/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -2361,7 +2361,8 @@ bool SimpleRegisterCoalescing::runOnMachineFunction(MachineFunction &fn) { LI.weight = HUGE_VALF; else { bool isLoad = false; - if (li_->isReMaterializable(LI, isLoad)) { + SmallVector<LiveInterval*, 4> SpillIs; + if (li_->isReMaterializable(LI, SpillIs, isLoad)) { // If all of the definitions of the interval are re-materializable, // it is a preferred candidate for spilling. If non of the defs are // loads, then it's potentially very cheap to re-materialize. |