Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TIR] Modify IntImmNode deep_equal to match regardless of type
This patch makes a small change to compare the values of IntImmNode to see if they're equal when performing a deep_equal of expressions. This is to try and align it with how the [`PEqualChecker<IntImm>`](https://github.com/apache/tvm/blob/b2204ae6988c7745ea9736340ccd900bc21ae821/src/arith/pattern_match.h#L166) works where we only compare the values if both are IntImm. This caused some simplifications to be inconsistent based on whether we used IntImmNode or PrimExpr to pass an integer between different passes, and it seemed to make more sense to say that if the values are equal, then we can conclude the immediates are equal.
- Loading branch information