tree-ssa-phiopt.c (cond_removal_in_popcount_pattern): New.
authorKugan Vivekanandarajah <kuganv@linaro.org>
Fri, 6 Jul 2018 22:15:48 +0000 (22:15 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Fri, 6 Jul 2018 22:15:48 +0000 (22:15 +0000)
commit58f12ec1437329c3269c6cafea98e22127d4bda8
tree3e6be7f9ff32734c76314abc4064f4fa10c383d2
parentb8b31957e4c7e28fc44ae1b1ce658ba49ff1aa18
tree-ssa-phiopt.c (cond_removal_in_popcount_pattern): New.

gcc/ChangeLog:

2018-07-06  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>

* tree-ssa-phiopt.c (cond_removal_in_popcount_pattern): New.
(tree_ssa_phiopt_worker): Call cond_removal_in_popcount_pattern.

gcc/testsuite/ChangeLog:

2018-07-06  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>

* gcc.dg/tree-ssa/phi-opt-16.c: New test.
* gcc.dg/tree-ssa/phi-opt-17.c: New test.
* gcc.dg/tree-ssa/phi-opt-18.c: New test.
* gcc.dg/tree-ssa/phi-opt-19.c: New test.
* gcc.dg/tree-ssa/popcount3.c: New test.

From-SVN: r262488
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-16.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-17.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-18.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-19.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/popcount3.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.c