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 | c84ea139c78af904141145f2374289347e29fa6e (patch) | |
tree | 910098540a161ad8e6526a52179cc5c73ff17292 /lib/CodeGen/SimpleRegisterCoalescing.cpp | |
parent | f61a921b17c36fbb21737cf08775e835c828cec4 (diff) | |
download | external_llvm-c84ea139c78af904141145f2374289347e29fa6e.tar.gz external_llvm-c84ea139c78af904141145f2374289347e29fa6e.tar.bz2 external_llvm-c84ea139c78af904141145f2374289347e29fa6e.zip |
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. |