| Index: runtime/vm/flow_graph_allocator.cc
|
| diff --git a/runtime/vm/flow_graph_allocator.cc b/runtime/vm/flow_graph_allocator.cc
|
| index f17badf3b0e7fb7e43eabb983c87fb88eeb0ce59..00e12a473937cbb0b701a189aa750cb2a7fc0f27 100644
|
| --- a/runtime/vm/flow_graph_allocator.cc
|
| +++ b/runtime/vm/flow_graph_allocator.cc
|
| @@ -913,22 +913,22 @@ void FlowGraphAllocator::ProcessOneInput(BlockEntryInstr* block,
|
| // Writable unallocated input. Expected shape of
|
| // live ranges:
|
| //
|
| - // j' i i'
|
| + // i i'
|
| // value --*
|
| - // temp [------)
|
| - MoveOperands* move = AddMoveAt(pos - 1,
|
| + // temp [--)
|
| + MoveOperands* move = AddMoveAt(pos,
|
| Location::RequiresRegister(),
|
| Location::PrefersRegister());
|
|
|
| // Add uses to the live range of the input.
|
| - range->AddUseInterval(block->start_pos(), pos - 1);
|
| - range->AddUse(pos - 1, move->src_slot());
|
| + range->AddUseInterval(block->start_pos(), pos);
|
| + range->AddUse(pos, move->src_slot());
|
|
|
| // Create live range for the temporary.
|
| LiveRange* temp = MakeLiveRangeForTemporary();
|
| - temp->AddUseInterval(pos - 1, pos + 1);
|
| - temp->AddHintedUse(pos - 1, in_ref, move->src_slot());
|
| - temp->AddUse(pos + 1, move->dest_slot());
|
| + temp->AddUseInterval(pos, pos + 1);
|
| + temp->AddHintedUse(pos, in_ref, move->src_slot());
|
| + temp->AddUse(pos, move->dest_slot());
|
| *in_ref = Location::RequiresRegister();
|
| CompleteRange(temp, RegisterKindFromPolicy(*in_ref));
|
| } else {
|
|
|