cornell-zhang / heterocl

HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Heterogeneous Computing
https://cornell-zhang.github.io/heterocl/
Apache License 2.0
322 stars 92 forks source link

[Pass] Remove Unnecessary Simplification for Bitwise Operators #399

Closed seanlatias closed 3 years ago

seanlatias commented 3 years ago

Fixed issue #398

Detailed description: In this PR, we remove unnecessary simplification for bitwise operators. In the original code base, inside Simplify.cpp, the bitwise_and will become a modular operator in certain cases, which is not necessary and can be wrong. This logic is now removed in this PR.

Link to the tests: Two tests are added. One under tests/issues and the other for more general testing under tests/test_api.py.