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

Unified Diff: src/hydrogen-check-elimination.cc

Issue 147023005: Don't propagate information through phis in loop headers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Replace print with assertEquals 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 | test/mjsunit/regress/regress-check-eliminate-loop-phis.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-check-elimination.cc
diff --git a/src/hydrogen-check-elimination.cc b/src/hydrogen-check-elimination.cc
index 5fdb3e3f3c48fa1260005eeeab7ec7e6ae537ebd..59b1b266844d455b9042d0505057013de47d3b4d 100644
--- a/src/hydrogen-check-elimination.cc
+++ b/src/hydrogen-check-elimination.cc
@@ -164,7 +164,7 @@ class HCheckTable : public ZoneObject {
copy->size_ = size_;
// Create entries for succ block's phis.
- if (succ->phis()->length() > 0) {
+ if (!succ->IsLoopHeader() && succ->phis()->length() > 0) {
int pred_index = succ->PredecessorIndexOf(from_block);
for (int phi_index = 0;
phi_index < succ->phis()->length();
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-check-eliminate-loop-phis.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698