Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Unified Diff: runtime/vm/flow_graph_allocator.cc

Issue 10832159: Don't mark register constraints resolution moves as prefering registers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« runtime/vm/compiler.cc ('K') | « runtime/vm/compiler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_allocator.cc
diff --git a/runtime/vm/flow_graph_allocator.cc b/runtime/vm/flow_graph_allocator.cc
index 9b0fe528c122fad54ddcf3b1f9102a97d5e45d3f..52a578ec7fec53f5e282800700530619b075e2b2 100644
--- a/runtime/vm/flow_graph_allocator.cc
+++ b/runtime/vm/flow_graph_allocator.cc
@@ -701,7 +701,7 @@ void FlowGraphAllocator::ProcessOneInstruction(BlockEntryInstr* block,
// register [-----)
//
MoveOperands* move =
- AddMoveAt(pos - 1, *in_ref, Location::PrefersRegister());
+ AddMoveAt(pos - 1, *in_ref, Location::Any());
BlockLocation(*in_ref, pos - 1, pos + 1);
range->AddUseInterval(block->start_pos(), pos - 1);
range->AddUse(pos - 1, move->src_slot());
@@ -821,7 +821,7 @@ void FlowGraphAllocator::ProcessOneInstruction(BlockEntryInstr* block,
range->DefineAt(pos + 1);
if (range->Start() == range->End()) return;
- MoveOperands* move = AddMoveAt(pos + 1, Location::PrefersRegister(), *out);
+ MoveOperands* move = AddMoveAt(pos + 1, Location::Any(), *out);
range->AddUse(pos + 1, move->dest_slot());
} else if (output_same_as_first_input) {
// Output register will contain a value of the first input at instruction's
@@ -837,7 +837,7 @@ void FlowGraphAllocator::ProcessOneInstruction(BlockEntryInstr* block,
locs->set_out(Location::RequiresRegister());
MoveOperands* move = AddMoveAt(pos,
Location::RequiresRegister(),
- Location::PrefersRegister());
+ Location::Any());
// Add uses to the live range of the input.
Value* input = current->InputAt(0);
« runtime/vm/compiler.cc ('K') | « runtime/vm/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698