mbs-octoml commented on a change in pull request #9483:
URL: https://github.com/apache/tvm/pull/9483#discussion_r759561480



##########
File path: src/relay/transforms/inline.cc
##########
@@ -54,22 +56,36 @@ class Inliner : ExprMutator {
       : cur_node_(cur_node), call_graph_(call_graph) {}
 
   Expr VisitExpr_(const CallNode* call_node) final {
-    Expr op = call_node->op;
-    const auto* gvn = op.as<GlobalVarNode>();
+    // We can work with calls in both Relay and call_lowered form.
+    Array<Expr> args;
+    Expr op;

Review comment:
       Introduced 'GetAnyCall' helper since this pattern was starting to 
multiply. 




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to