Commit a3057266 authored by franzih's avatar franzih Committed by Commit bot

[compiler] Delete unused variable.

BUG=

Review-Url: https://codereview.chromium.org/2257393002
Cr-Commit-Position: refs/heads/master@{#38743}
parent bb187a10
...@@ -149,8 +149,7 @@ class LoopVariableOptimizer::VariableLimits : public ZoneObject { ...@@ -149,8 +149,7 @@ class LoopVariableOptimizer::VariableLimits : public ZoneObject {
}; };
void InductionVariable::AddUpperBound(Node* bound, void InductionVariable::AddUpperBound(Node* bound,
InductionVariable::ConstraintKind kind, InductionVariable::ConstraintKind kind) {
Zone* graph_zone) {
if (FLAG_trace_turbo_loop) { if (FLAG_trace_turbo_loop) {
OFStream os(stdout); OFStream os(stdout);
os << "New upper bound for " << phi()->id() << " (loop " os << "New upper bound for " << phi()->id() << " (loop "
...@@ -161,8 +160,7 @@ void InductionVariable::AddUpperBound(Node* bound, ...@@ -161,8 +160,7 @@ void InductionVariable::AddUpperBound(Node* bound,
} }
void InductionVariable::AddLowerBound(Node* bound, void InductionVariable::AddLowerBound(Node* bound,
InductionVariable::ConstraintKind kind, InductionVariable::ConstraintKind kind) {
Zone* graph_zone) {
if (FLAG_trace_turbo_loop) { if (FLAG_trace_turbo_loop) {
OFStream os(stdout); OFStream os(stdout);
os << "New lower bound for " << phi()->id() << " (loop " os << "New lower bound for " << phi()->id() << " (loop "
...@@ -183,16 +181,14 @@ void LoopVariableOptimizer::VisitBackedge(Node* from, Node* loop) { ...@@ -183,16 +181,14 @@ void LoopVariableOptimizer::VisitBackedge(Node* from, Node* loop) {
NodeProperties::GetControlInput(constraint->left()) == loop) { NodeProperties::GetControlInput(constraint->left()) == loop) {
auto var = induction_vars_.find(constraint->left()->id()); auto var = induction_vars_.find(constraint->left()->id());
if (var != induction_vars_.end()) { if (var != induction_vars_.end()) {
var->second->AddUpperBound(constraint->right(), constraint->kind(), var->second->AddUpperBound(constraint->right(), constraint->kind());
graph()->zone());
} }
} }
if (constraint->right()->opcode() == IrOpcode::kPhi && if (constraint->right()->opcode() == IrOpcode::kPhi &&
NodeProperties::GetControlInput(constraint->right()) == loop) { NodeProperties::GetControlInput(constraint->right()) == loop) {
auto var = induction_vars_.find(constraint->right()->id()); auto var = induction_vars_.find(constraint->right()->id());
if (var != induction_vars_.end()) { if (var != induction_vars_.end()) {
var->second->AddUpperBound(constraint->left(), constraint->kind(), var->second->AddUpperBound(constraint->left(), constraint->kind());
graph()->zone());
} }
} }
} }
......
...@@ -45,8 +45,8 @@ class InductionVariable : public ZoneObject { ...@@ -45,8 +45,8 @@ class InductionVariable : public ZoneObject {
lower_bounds_(zone), lower_bounds_(zone),
upper_bounds_(zone) {} upper_bounds_(zone) {}
void AddUpperBound(Node* bound, ConstraintKind kind, Zone* graph_zone); void AddUpperBound(Node* bound, ConstraintKind kind);
void AddLowerBound(Node* bound, ConstraintKind kind, Zone* graph_zone); void AddLowerBound(Node* bound, ConstraintKind kind);
Node* phi_; Node* phi_;
Node* arith_; Node* arith_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment