diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-12 04:25:36 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-12 04:25:36 +0000 |
commit | e77005ef880738f743d1492cca4e624ae9f4389e (patch) | |
tree | c4b5a285190c570b307a076c8826cd10074e0a28 /llvm/lib | |
parent | a86595e06ba527ba35216665e143c1fdac79a5be (diff) | |
download | bcm5719-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.cpp | 4 |
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) |