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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 12391060: In LoadOptimizer::EmitPhis check for environment uses of phis. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | tests/language/store_to_load_forwarding_phis_vm_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_optimizer.cc
diff --git a/runtime/vm/flow_graph_optimizer.cc b/runtime/vm/flow_graph_optimizer.cc
index d74c8643bc3d5445a1db3e98d5c10fb018473512..522dee1a22007fcaf82a884f584f21dff92470f9 100644
--- a/runtime/vm/flow_graph_optimizer.cc
+++ b/runtime/vm/flow_graph_optimizer.cc
@@ -3381,7 +3381,7 @@ class LoadOptimizer : public ValueObject {
void EmitPhis() {
for (intptr_t i = 0; i < phis_.length(); i++) {
PhiInstr* phi = phis_[i];
- if ((phi->input_use_list() != NULL) && !EliminateRedundantPhi(phi)) {
+ if (phi->HasUses() && !EliminateRedundantPhi(phi)) {
phi->mark_alive();
phi->block()->InsertPhi(phi);
} else {
« no previous file with comments | « no previous file | tests/language/store_to_load_forwarding_phis_vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698