yes,you are right. but SimplifyInferencePass ,this pass add some new node to
the graph. but CreateFunctionPass just update one node of raw IRModule.
---
[Visit
Topic](https://discuss.tvm.apache.org/t/why-simplifyinference-use-createfunctionpass-to-create-pass/12979/3)
to respond.
You are
hello,gays.
I read the tvm pass code, but i so confuse, the SimplifyInferencePass use the
{MixedModeMutator} to rewrite graph expr{node}, and return a expr.
The {FunctionPassNode::operator()} loop the graph node , do pass for every node
of graph. and restore the id:new_expr to update graph.
th