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

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

Issue 2257393002: [compiler] Delete unused variable. (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 | « src/compiler/loop-variable-optimizer.h ('k') | no next file » | 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 818cca8cfd67b46b5a96877c7b0a1ff58cfaf77d..64a6409caf933d011f330a0b146f1b04e4d68e9c 100644
--- a/src/compiler/loop-variable-optimizer.cc
+++ b/src/compiler/loop-variable-optimizer.cc
@@ -149,8 +149,7 @@ class LoopVariableOptimizer::VariableLimits : public ZoneObject {
};
void InductionVariable::AddUpperBound(Node* bound,
- InductionVariable::ConstraintKind kind,
- Zone* graph_zone) {
+ InductionVariable::ConstraintKind kind) {
if (FLAG_trace_turbo_loop) {
OFStream os(stdout);
os << "New upper bound for " << phi()->id() << " (loop "
@@ -161,8 +160,7 @@ void InductionVariable::AddUpperBound(Node* bound,
}
void InductionVariable::AddLowerBound(Node* bound,
- InductionVariable::ConstraintKind kind,
- Zone* graph_zone) {
+ InductionVariable::ConstraintKind kind) {
if (FLAG_trace_turbo_loop) {
OFStream os(stdout);
os << "New lower bound for " << phi()->id() << " (loop "
@@ -183,16 +181,14 @@ void LoopVariableOptimizer::VisitBackedge(Node* from, Node* loop) {
NodeProperties::GetControlInput(constraint->left()) == loop) {
auto var = induction_vars_.find(constraint->left()->id());
if (var != induction_vars_.end()) {
- var->second->AddUpperBound(constraint->right(), constraint->kind(),
- graph()->zone());
+ var->second->AddUpperBound(constraint->right(), constraint->kind());
}
}
if (constraint->right()->opcode() == IrOpcode::kPhi &&
NodeProperties::GetControlInput(constraint->right()) == loop) {
auto var = induction_vars_.find(constraint->right()->id());
if (var != induction_vars_.end()) {
- var->second->AddUpperBound(constraint->left(), constraint->kind(),
- graph()->zone());
+ var->second->AddUpperBound(constraint->left(), constraint->kind());
}
}
}
« no previous file with comments | « src/compiler/loop-variable-optimizer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698