mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +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:
@ -550,7 +550,7 @@ void LiveIntervalMap::addSimpleRange(SlotIndex Start, SlotIndex End,
|
|||||||
|
|
||||||
// ParentVNI is a complex value. We must map per MBB.
|
// ParentVNI is a complex value. We must map per MBB.
|
||||||
MachineFunction::iterator MBB = lis_.getMBBFromIndex(Start);
|
MachineFunction::iterator MBB = lis_.getMBBFromIndex(Start);
|
||||||
MachineFunction::iterator MBBE = lis_.getMBBFromIndex(End);
|
MachineFunction::iterator MBBE = lis_.getMBBFromIndex(End.getPrevSlot());
|
||||||
|
|
||||||
if (MBB == MBBE) {
|
if (MBB == MBBE) {
|
||||||
li_->addRange(LiveRange(Start, End, VNI));
|
li_->addRange(LiveRange(Start, End, VNI));
|
||||||
|
Reference in New Issue
Block a user