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

Unified Diff: runtime/vm/flow_graph.h

Issue 144053002: Fix bug in flow-graph loop detection. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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
===================================================================
--- runtime/vm/flow_graph.h (revision 31954)
+++ runtime/vm/flow_graph.h (working copy)
@@ -247,7 +247,9 @@
// 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);
+ // Returns a BitVector indexed by block pre-order number where each bit
+ // indicates membership in the loop.
+ BitVector* FindLoop(BlockEntryInstr* m, BlockEntryInstr* n);
// Finds natural loops in the flow graph and attaches a list of loop
// body blocks for each loop header.
« 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