Skip to content

Commit

Permalink
[OpenCL] Remove redundant visit statement in CodeGen. (#9144)
Browse files Browse the repository at this point in the history
Fixes regression with some models on which compilation
doesn't terminate.
  • Loading branch information
AnastasiaStulova authored Sep 29, 2021
1 parent c2bf399 commit 285dbd8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/target/source/codegen_opencl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ class InferTextureAccess : public StmtExprVisitor {
var_access_map_[op->args[0].as<VarNode>()] |= kReadAccess;
} else if (op->op.same_as(builtin::texture2d_store())) {
var_access_map_[op->args[0].as<VarNode>()] |= kWriteAccess;
} else {
StmtExprVisitor::VisitExpr_(op);
}
StmtExprVisitor::VisitExpr_(op);
}
Expand Down

0 comments on commit 285dbd8

Please sign in to comment.