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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 12638040: Compute local variable liveness before translation to SSA. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
Index: runtime/vm/flow_graph_optimizer.cc
diff --git a/runtime/vm/flow_graph_optimizer.cc b/runtime/vm/flow_graph_optimizer.cc
index 9e6ee4efe41b9e45abc243c7dc5c4136ccd598a2..feceb41e84c967646934e1baa483a91d95383089 100644
--- a/runtime/vm/flow_graph_optimizer.cc
+++ b/runtime/vm/flow_graph_optimizer.cc
@@ -3252,7 +3252,7 @@ class LoadOptimizer : public ValueObject {
for (intptr_t i = 0; i < block->PredecessorCount(); i++) {
BlockEntryInstr* pred = block->PredecessorAt(i);
BitVector* pred_out = out_[pred->preorder_number()];
- temp->Intersect(*pred_out);
+ temp->Intersect(pred_out);
}
}
@@ -4435,6 +4435,8 @@ void ConstantPropagator::Transform() {
// Replace the false target entry with the new join entry. We will
// recompute the dominators after this pass.
join->LinkTo(next);
+ jump->SetEnvironment(branch->env());
Vyacheslav Egorov (Google) 2013/03/21 22:48:27 This change revealed serious flaw in the way we re
Kevin Millikin (Google) 2013/03/22 11:57:52 I wouldn't say it's a flaw in the way we restructu
+ branch->SetEnvironment(NULL);
branch->UnuseAllInputs();
}
}

Powered by Google App Engine
This is Rietveld 408576698