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

Unified Diff: src/hydrogen-gvn.cc

Issue 153533003: Reduce memory usage due to fixpoint iteration of GVN. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-gvn.cc
diff --git a/src/hydrogen-gvn.cc b/src/hydrogen-gvn.cc
index 905fd86c99034175836445d3379ee701f3c387ab..0628ff76fbac5f3ae0bcfee0359972d60ccabd14 100644
--- a/src/hydrogen-gvn.cc
+++ b/src/hydrogen-gvn.cc
@@ -378,13 +378,13 @@ HGlobalValueNumberingPhase::HGlobalValueNumberingPhase(HGraph* graph)
void HGlobalValueNumberingPhase::Reset() {
- block_side_effects_.Clear();
- loop_side_effects_.Clear();
+ ASSERT(block_side_effects_.length() == graph()->blocks()->length());
+ ASSERT(loop_side_effects_.length() == graph()->blocks()->length());
+ for (int i = 0; i < graph()->blocks()->length(); ++i) {
+ block_side_effects_[i] = GVNFlagSet();
+ loop_side_effects_[i] = GVNFlagSet();
+ }
visited_on_paths_.Clear();
- block_side_effects_.AddBlock(GVNFlagSet(), graph()->blocks()->length(),
- zone());
- loop_side_effects_.AddBlock(GVNFlagSet(), graph()->blocks()->length(),
- zone());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698