mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 05:29:23 +00:00
Remove live interval entries for an interval if we're eliminating its only VN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54062 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8d0cc0af5a
commit
55c64358d1
@ -794,7 +794,12 @@ void StrongPHIElimination::mergeLiveIntervals(unsigned primary,
|
||||
LI.getVNInfoAllocator());
|
||||
NewVN->hasPHIKill = true;
|
||||
LiveRange NewRange(RangeMergingIn->start, RangeMergingIn->end, NewVN);
|
||||
RHS.removeRange(RangeMergingIn->start, RangeMergingIn->end, true);
|
||||
|
||||
if (RHS.containsOneValue())
|
||||
LI.removeInterval(RHS.reg);
|
||||
else
|
||||
RHS.removeRange(RangeMergingIn->start, RangeMergingIn->end, true);
|
||||
|
||||
LHS.addRange(NewRange);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user