mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Intervals are half-open.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e583c892d8
commit
dbc36091ff
@ -550,7 +550,7 @@ void LiveIntervalMap::addSimpleRange(SlotIndex Start, SlotIndex End,
|
||||
|
||||
// ParentVNI is a complex value. We must map per MBB.
|
||||
MachineFunction::iterator MBB = lis_.getMBBFromIndex(Start);
|
||||
MachineFunction::iterator MBBE = lis_.getMBBFromIndex(End);
|
||||
MachineFunction::iterator MBBE = lis_.getMBBFromIndex(End.getPrevSlot());
|
||||
|
||||
if (MBB == MBBE) {
|
||||
li_->addRange(LiveRange(Start, End, VNI));
|
||||
|
Loading…
Reference in New Issue
Block a user