summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-12 04:25:36 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-12 04:25:36 +0000
commite77005ef880738f743d1492cca4e624ae9f4389e (patch)
treec4b5a285190c570b307a076c8826cd10074e0a28 /llvm/lib
parenta86595e06ba527ba35216665e143c1fdac79a5be (diff)
downloadbcm5719-llvm-e77005ef880738f743d1492cca4e624ae9f4389e.tar.gz
bcm5719-llvm-e77005ef880738f743d1492cca4e624ae9f4389e.zip
Include snippets in the live stack interval.
llvm-svn: 127530
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/InlineSpiller.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp
index 8c8279510b2..8964853e9fd 100644
--- a/llvm/lib/CodeGen/InlineSpiller.cpp
+++ b/llvm/lib/CodeGen/InlineSpiller.cpp
@@ -555,7 +555,9 @@ void InlineSpiller::spill(LiveRangeEdit &edit) {
LiveInterval &stacklvr = lss_.getOrCreateInterval(stackSlot_, rc_);
if (!stacklvr.hasAtLeastOneValue())
stacklvr.getNextValue(SlotIndex(), 0, lss_.getVNInfoAllocator());
- stacklvr.MergeRangesInAsValue(edit_->getParent(), stacklvr.getValNumInfo(0));
+ for (unsigned i = 0, e = RegsToSpill.size(); i != e; ++i)
+ stacklvr.MergeRangesInAsValue(lis_.getInterval(RegsToSpill[i]),
+ stacklvr.getValNumInfo(0));
// Spill around uses of all RegsToSpill.
for (unsigned i = 0, e = RegsToSpill.size(); i != e; ++i)
OpenPOWER on IntegriCloud