| Index: runtime/vm/flow_graph_allocator.cc
|
| diff --git a/runtime/vm/flow_graph_allocator.cc b/runtime/vm/flow_graph_allocator.cc
|
| index 58be77aa528ce75847ab83073a93d33dab2aa36e..5f8fc613f200e5fe3ec452dd23fcc13bcca5e6cc 100644
|
| --- a/runtime/vm/flow_graph_allocator.cc
|
| +++ b/runtime/vm/flow_graph_allocator.cc
|
| @@ -1496,9 +1496,11 @@ void FlowGraphAllocator::AllocateAnyRegister(LiveRange* unallocated) {
|
| unallocated->vreg(), blocked_at));
|
|
|
| if (blocked_at < unallocated->End()) {
|
| + // Register is blocked before the end of the live range. Split the range
|
| + // at latest at blocked_at position.
|
| LiveRange* tail = SplitBetween(unallocated,
|
| unallocated->Start(),
|
| - blocked_at);
|
| + blocked_at + 1);
|
| AddToUnallocated(tail);
|
| }
|
|
|
|
|