Hi Andrew,
This is version 2 of the patch series to introduce bitwise reduction
simplifications against zero in match.pd, resolving PR125442.
Changes from v1:
-Added 2 new testcases called int-bwise-opt-3.c and int-bwise-opt-4.c
Regression tested on x86_64-pc-linux-gnu.
Verified targeted test suite compliance via dejagnu:
- gcc.dg/int-bwise-opt-*.c: 12 expected passes (including 4 new passes
from int-bwise-opt-3.c and int-bwise-opt-4.c).
Souradipto Das (2):
tree-optimization: Add bitop reduction simplifications against zero
testsuite: Add new testcases for bitop reduction simplifications
gcc/match.pd | 9 +++++++++
gcc/testsuite/gcc.dg/int-bwise-opt-3.c | 9 +++++++++
gcc/testsuite/gcc.dg/int-bwise-opt-4.c | 9 +++++++++
3 files changed, 27 insertions(+)
create mode 100644 gcc/testsuite/gcc.dg/int-bwise-opt-3.c
create mode 100644 gcc/testsuite/gcc.dg/int-bwise-opt-4.c
--
2.43.0