Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BugFix][Arith] IterMapRewriter abort rewriting once failure
This PR fixes an issue of the IterMapRewriter. Prior to this PR, the mutation function of the rewriter class returns the mutation results even when an invalid PrimExpr pattern was detected. Returning the mutation results when failure is not expected, and in such cases we should "abort" the mutation, and return the input PrimExpr which is not mutated, since insisting on returning the mutation results sometimes it incurs further error on other arith components like simplification. One unit test is added to ensure the rewriter behaves as expectation.
- Loading branch information