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

Unified Diff: runtime/vm/flow_graph.h

Issue 17283006: Fix a small bug in trace printing for discovered loops. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | runtime/vm/flow_graph.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph.h
diff --git a/runtime/vm/flow_graph.h b/runtime/vm/flow_graph.h
index 8ed08c8d125b59778f48be1db4421757afd4c781..615cef1c1575d0426703eab2a6e49956fb00f4e0 100644
--- a/runtime/vm/flow_graph.h
+++ b/runtime/vm/flow_graph.h
@@ -218,6 +218,11 @@ class FlowGraph : public ZoneAllocated {
void ReplacePredecessor(BlockEntryInstr* old_block,
BlockEntryInstr* new_block);
+ // Find the natural loop for the back edge m->n and attach loop
+ // information to block n (loop header). The algorithm is described in
+ // "Advanced Compiler Design & Implementation" (Muchnick) p192.
+ void FindLoop(BlockEntryInstr* m, BlockEntryInstr* n);
+
// Finds natural loops in the flow graph and attaches a list of loop
// body blocks for each loop header.
ZoneGrowableArray<BlockEntryInstr*>* ComputeLoops();
« no previous file with comments | « no previous file | runtime/vm/flow_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698