zhiics commented on a change in pull request #4389: [fix][pass] Save the
function when it is used as a call arg
URL: https://github.com/apache/incubator-tvm/pull/4389#discussion_r348799163
##########
File path: src/relay/backend/vm/removed_unused_funcs.cc
##########
@@ -76,6 +72,15 @@ struct CallTracer : ExprVisitor {
}
visiting_.insert(func);
VisitExpr(func);
+ } else {
+ VisitExpr(expr);
+ }
+ }
+
+ void VisitExpr_(const CallNode* call_node) final {
+ CheckExpr(call_node->op);
+ for (auto param : call_node->args) {
+ CheckExpr(param);
}
Review comment:
Yes, it could be. I just moved it out to make it look more clear. How do you
think?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services