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 | b1adbd1f67125668ef1a87be62553e0f95cbc4d9 (patch) | |
tree | da4122f43a52cea569c188b2b867fde0ebdfacda | |
parent | 10a433238fe4679c8da17f3eb19611466332e312 (diff) | |
download | external_llvm-b1adbd1f67125668ef1a87be62553e0f95cbc4d9.zip external_llvm-b1adbd1f67125668ef1a87be62553e0f95cbc4d9.tar.gz external_llvm-b1adbd1f67125668ef1a87be62553e0f95cbc4d9.tar.bz2 |
Include snippets in the live stack interval.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127530 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/InlineSpiller.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/InlineSpiller.cpp b/lib/CodeGen/InlineSpiller.cpp index 8c82795..8964853 100644 --- a/lib/CodeGen/InlineSpiller.cpp +++ b/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) |