Lunderberg opened a new pull request, #16732: URL: https://github.com/apache/tvm/pull/16732
The `rewrite_call` function accepts a `DFPattern`, and a function to rewrite expressions matching that pattern. Often, the rewriting function will perform additional validation that cannot be expressed within the `DFPattern` itself. If this additional validation fails, the rewriter function will return the matched expression unmodified. Prior to this commit, an `OrPattern` that matches on the first branch, but whose rewriter function does not apply a modification, would prevent the second branch from being checked. This commit updates the `ExprPatternRewriter` to check both branches of a `OrPattern`, if the rewriter function of the first branch does not modify the result. -- 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: commits-unsubscr...@tvm.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org