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 | 9156bd2f489537a11224d8bee4fab7955dbd1fa6 (patch) | |
tree | efb62a766f1bb463bb05e8a393d05bb97c7727a1 /llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | |
parent | dc6939181085bf729aecc666a3cf2e7a2c741909 (diff) |
Re-apply 56835 along with header file changes.
llvm-svn: 56848
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp index bdc37b16b6a0..86065f069f73 100644 --- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/llvm/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. |