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

Unified Diff: runtime/vm/flow_graph_allocator.cc

Issue 10983024: Disregard constants with no SSA temp index in register allocator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | 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 ea27ce58d814550e39e6dbffa82a55012e4e7fe2..1e0cb4f1dfb8cb67253aebd0392ea070616a1c2e 100644
--- a/runtime/vm/flow_graph_allocator.cc
+++ b/runtime/vm/flow_graph_allocator.cc
@@ -787,7 +787,8 @@ void FlowGraphAllocator::ProcessOneInstruction(BlockEntryInstr* block,
Definition* def = current->AsDefinition();
if ((def != NULL) &&
(def->AsConstant() != NULL) &&
- (GetLiveRange(def->ssa_temp_index())->first_use() == NULL)) {
+ ((def->ssa_temp_index() == -1) ||
+ (GetLiveRange(def->ssa_temp_index())->first_use() == NULL))) {
// Drop definitions of constants that have no uses.
locs->set_out(Location::NoLocation());
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698