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

Unified Diff: runtime/vm/flow_graph.h

Issue 2709093003: Fixup redefinitions before doing code motion (Closed)
Patch Set: Created 3 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
Index: runtime/vm/flow_graph.h
diff --git a/runtime/vm/flow_graph.h b/runtime/vm/flow_graph.h
index 9c1c08e2b295640945be08162110a88adcfe37cc..2084f9f3a768af58f584d0a7c3da712ba34b1ec6 100644
--- a/runtime/vm/flow_graph.h
+++ b/runtime/vm/flow_graph.h
@@ -199,6 +199,7 @@ class FlowGraph : public ZoneAllocated {
// Verification methods for debugging.
bool VerifyUseLists();
+ bool VerifyRedefinitions();
void DiscoverBlocks();
@@ -291,6 +292,10 @@ class FlowGraph : public ZoneAllocated {
Instruction* dom,
Definition* other);
+ // Renames uses of redefined values to make sure that uses of redefined
+ // values that are dominated by a redefinition are renamed.
+ void FixupRedefinitions();
+
private:
friend class IfConverter;
friend class BranchSimplifier;

Powered by Google App Engine
This is Rietveld 408576698