From 10f900a94091ec922473934829ecb6aed74cdcbf Mon Sep 17 00:00:00 2001 From: Anastasia Stulova Date: Mon, 27 Sep 2021 17:47:07 +0100 Subject: [PATCH] [OpenCL] Remove redundant visit statement in CodeGen. Fixes regression with some models on which compilation doesn't terminate. --- src/target/source/codegen_opencl.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/target/source/codegen_opencl.cc b/src/target/source/codegen_opencl.cc index 7abff36a3ddb..d93a7fde639a 100644 --- a/src/target/source/codegen_opencl.cc +++ b/src/target/source/codegen_opencl.cc @@ -59,8 +59,6 @@ class InferTextureAccess : public StmtExprVisitor { var_access_map_[op->args[0].as()] |= kReadAccess; } else if (op->op.same_as(builtin::texture2d_store())) { var_access_map_[op->args[0].as()] |= kWriteAccess; - } else { - StmtExprVisitor::VisitExpr_(op); } StmtExprVisitor::VisitExpr_(op); }