diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-21 18:47:08 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-21 18:47:08 +0000 |
commit | 9d999772df3a7fd96857bb9155e1e9ab5fee7a13 (patch) | |
tree | 58fc8bcee0b2f22b8f68449cff85d205315281d1 /lib/CodeGen/SplitKit.cpp | |
parent | 0a7bbcb0cc3c6f1905cd26697c5baf4859ac6443 (diff) |
Don't include the destination interval in the union when computing
Parent - union(Y, ...). Doh.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.cpp')
-rw-r--r-- | lib/CodeGen/SplitKit.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp index 278a91d97d..88bf01800c 100644 --- a/lib/CodeGen/SplitKit.cpp +++ b/lib/CodeGen/SplitKit.cpp @@ -740,10 +740,10 @@ void SplitEditor::rewrite(unsigned reg) { break; } } + DEBUG(dbgs() << " rewr BB#" << MI->getParent()->getNumber() << '\t'<< Idx); assert(LI && "No register was live at use"); MO.setReg(LI->reg); - DEBUG(dbgs() << " rewrite BB#" << MI->getParent()->getNumber() << '\t' - << Idx << '\t' << *MI); + DEBUG(dbgs() << '\t' << *MI); } } @@ -755,6 +755,8 @@ SplitEditor::addTruncSimpleRange(SlotIndex Start, SlotIndex End, VNInfo *VNI) { SmallVector<IIPair, 8> Iters; for (LiveRangeEdit::iterator LI = edit_.begin(), LE = edit_.end(); LI != LE; ++LI) { + if (*LI == dupli_.getLI()) + continue; LiveInterval::const_iterator I = (*LI)->find(Start); LiveInterval::const_iterator E = (*LI)->end(); if (I != E) |