mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 18:33:22 +00:00
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
This commit is contained in:
parent
0a7bbcb0cc
commit
9d999772df
@ -740,10 +740,10 @@ void SplitEditor::rewrite(unsigned reg) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
DEBUG(dbgs() << " rewr BB#" << MI->getParent()->getNumber() << '\t'<< Idx);
|
||||||
assert(LI && "No register was live at use");
|
assert(LI && "No register was live at use");
|
||||||
MO.setReg(LI->reg);
|
MO.setReg(LI->reg);
|
||||||
DEBUG(dbgs() << " rewrite BB#" << MI->getParent()->getNumber() << '\t'
|
DEBUG(dbgs() << '\t' << *MI);
|
||||||
<< Idx << '\t' << *MI);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -755,6 +755,8 @@ SplitEditor::addTruncSimpleRange(SlotIndex Start, SlotIndex End, VNInfo *VNI) {
|
|||||||
SmallVector<IIPair, 8> Iters;
|
SmallVector<IIPair, 8> Iters;
|
||||||
for (LiveRangeEdit::iterator LI = edit_.begin(), LE = edit_.end(); LI != LE;
|
for (LiveRangeEdit::iterator LI = edit_.begin(), LE = edit_.end(); LI != LE;
|
||||||
++LI) {
|
++LI) {
|
||||||
|
if (*LI == dupli_.getLI())
|
||||||
|
continue;
|
||||||
LiveInterval::const_iterator I = (*LI)->find(Start);
|
LiveInterval::const_iterator I = (*LI)->find(Start);
|
||||||
LiveInterval::const_iterator E = (*LI)->end();
|
LiveInterval::const_iterator E = (*LI)->end();
|
||||||
if (I != E)
|
if (I != E)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user