Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Opt] Make merging casts int(int(x)) less aggressive (#7944)
Fixes #7915 ### Brief Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at ed6302b</samp> Fix a bug in `alg_simp` that removed casts between signed and unsigned integers. Add a test case in `test_optimization` to check the cast simplification. ### Walkthrough <!-- copilot:walkthrough --> ### <samp>🤖 Generated by Copilot at ed6302b</samp> * Fix a bug in algebraic simplification that incorrectly removed some casts between signed and unsigned integers ([link](https://github.com/taichi-dev/taichi/pull/7944/files?diff=unified&w=0#diff-77d8ca8e4dc6081988bd6dddb74bb9a5485af28ce3e0b43bc06d123256695513L63-R66)) * Add a test case to verify the correctness of the cast simplification after the bug fix ([link](https://github.com/taichi-dev/taichi/pull/7944/files?diff=unified&w=0#diff-b8b031f0789413acece482512df4af5b8419a2a2dea3624b26114bbb9b57d334R146-R155))
- Loading branch information