Skip to content

Commit

Permalink
clean-up cse code
Browse files Browse the repository at this point in the history
  • Loading branch information
AD1024 committed Aug 24, 2022
1 parent 5421fe1 commit b9fd3a9
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions taichi/analysis/same_statements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,24 +196,6 @@ class IRNodeComparator : public IRVisitor {
basic_check(stmt);
}

void visit(MatrixInitStmt *stmt) override {
basic_check(stmt);
if (!same)
return;
auto o = other_node_->as<MatrixInitStmt>();
if (stmt->values.size() != o->values.size()) {
same = false;
return;
}
for (int i = 0; i < stmt->values.size(); ++i) {
other_node_ = o->values[i];
stmt->values[i]->accept(this);
other_node_ = o;
if (!same)
return;
}
}

void visit(IfStmt *stmt) override {
basic_check(stmt);
if (!same)
Expand Down

0 comments on commit b9fd3a9

Please sign in to comment.