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

Unified Diff: src/compiler/loop-variable-optimizer.cc

Issue 2222953003: [turbofan] Fix silly bug in loop variable analysis. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/compiler/regress-loop-variable-if.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/loop-variable-optimizer.cc
diff --git a/src/compiler/loop-variable-optimizer.cc b/src/compiler/loop-variable-optimizer.cc
index 39268f4303069a15a0bf586b7a395f7c1ee1ec6f..818cca8cfd67b46b5a96877c7b0a1ff58cfaf77d 100644
--- a/src/compiler/loop-variable-optimizer.cc
+++ b/src/compiler/loop-variable-optimizer.cc
@@ -221,7 +221,7 @@ void LoopVariableOptimizer::VisitMerge(Node* node) {
// Merge the limits of all incoming edges.
VariableLimits* merged = limits_[node->InputAt(0)->id()]->Copy(zone());
for (int i = 1; i < node->InputCount(); i++) {
- merged->Merge(limits_[node->InputAt(0)->id()]);
+ merged->Merge(limits_[node->InputAt(i)->id()]);
}
limits_[node->id()] = merged;
}
« no previous file with comments | « no previous file | test/mjsunit/compiler/regress-loop-variable-if.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698