zackcquic commented on a change in pull request #7952:
URL: https://github.com/apache/tvm/pull/7952#discussion_r634902803
##########
File path: src/tir/ir/transform.cc
##########
@@ -87,9 +87,11 @@ PrimFuncPass::PrimFuncPass(
// Perform Module -> Module optimizations at the PrimFunc level.
IRModule PrimFuncPassNode::operator()(IRModule mod, const PassContext&
pass_ctx) const {
- const PassInfo& pass_info = Info();
Review comment:
Fixed
##########
File path: src/ir/transform.cc
##########
@@ -464,12 +360,19 @@ IRModule ModulePassNode::operator()(IRModule mod, const
PassContext& pass_ctx) c
<< "The diagnostic context was set at the top of this block this is a
bug.";
const PassInfo& pass_info = Info();
+ ICHECK(mod.defined()) << "The input module must be set.";
+
+ if (!pass_ctx.InstrumentBeforePass(mod, pass_info)) {
+ DLOG(INFO) << "Skipping function pass : " << pass_info->name
Review comment:
Done
--
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]