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

Unified Diff: runtime/vm/flow_graph_allocator.cc

Issue 10833048: In FlowGraphAllocator::ComputeInitialSets use post-order number when accessing kill and live-in set… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 bcc9e6e278ea4d12f639160669bbfccf6e0cd85b..506c96cee505bd5d427dff9e36369d5970d1570c 100644
--- a/runtime/vm/flow_graph_allocator.cc
+++ b/runtime/vm/flow_graph_allocator.cc
@@ -146,8 +146,8 @@ void FlowGraphAllocator::ComputeInitialSets() {
Value* val = graph_entry->start_env()->values()[i];
if (val->IsUse()) {
const intptr_t vreg = val->AsUse()->definition()->ssa_temp_index();
- kill_[0]->Add(vreg);
- live_in_[0]->Remove(vreg);
+ kill_[graph_entry->postorder_number()]->Add(vreg);
+ live_in_[graph_entry->postorder_number()]->Remove(vreg);
}
}
« 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