aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-10-29 05:06:14 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-10-29 05:06:14 +0000
commitd0e32c5d5c1bb03bc0cc8aeef52728724cab1c51 (patch)
tree9bfe91bf7475a0ee0c35dbadccb4b7949b4ad0fa /lib/CodeGen/RegAllocLinearScan.cpp
parent980e842153e868fc0c5c261311d965d00271ca5d (diff)
downloadexternal_llvm-d0e32c5d5c1bb03bc0cc8aeef52728724cab1c51.zip
external_llvm-d0e32c5d5c1bb03bc0cc8aeef52728724cab1c51.tar.gz
external_llvm-d0e32c5d5c1bb03bc0cc8aeef52728724cab1c51.tar.bz2
- Rewrite code that update register live interval that's split.
- Create and update spill slot live intervals. - Lots of bug fixes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58367 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp
index c382a4a..8020aa1 100644
--- a/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/lib/CodeGen/RegAllocLinearScan.cpp
@@ -410,7 +410,7 @@ void RALinScan::linearScan()
for (LiveInterval::Ranges::const_iterator I = cur.begin(), E = cur.end();
I != E; ++I) {
const LiveRange &LR = *I;
- if (li_->findLiveInMBBs(LR, LiveInMBBs)) {
+ if (li_->findLiveInMBBs(LR.start, LR.end, LiveInMBBs)) {
for (unsigned i = 0, e = LiveInMBBs.size(); i != e; ++i)
if (LiveInMBBs[i] != EntryMBB)
LiveInMBBs[i]->addLiveIn(Reg);