jroesch commented on a change in pull request #9483:
URL: https://github.com/apache/tvm/pull/9483#discussion_r758744300
##########
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:
It might be good to just insert checks below here incase the code is
later refactored in a way that would make these be-unitialized.
--
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]