tqchen commented on code in PR #15994:
URL: https://github.com/apache/tvm/pull/15994#discussion_r1379217051
##########
src/relax/transform/fuse_tir.cc:
##########
@@ -48,29 +48,32 @@ class SymbolicMatcher : ExprFunctor<bool(const PrimExpr& n,
const PrimExpr& othe
}
}
void Match(const PrimExpr& param, const PrimExpr& arg) {
- if (!VisitExpr(param, arg)) {
- LOG(FATAL) << "Failed to match PrimExpr " << param << " with " << arg;
- }
+ VisitExpr(param, arg);
+ must_prove_ = arith::Analyzer().Simplify(Substitute(must_prove_,
*var_remap_));
Review Comment:
would be useful to generate analyzer once and reuse multiple times when
possibe
--
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]