Skip to content

Commit

Permalink
[OpenCL] Remove redundant visit statement in CodeGen. (apache#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 and ylc committed Jan 13, 2022
1 parent ad24256 commit c3da3a8
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 c3da3a8

Please sign in to comment.