re PR tree-optimization/86544 (Popcount detection generates different code on C and...
authorKugan Vivekanandarajah <kuganv@linaro.org>
Wed, 18 Jul 2018 22:11:24 +0000 (22:11 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Wed, 18 Jul 2018 22:11:24 +0000 (22:11 +0000)
commit7f15cc4dd931f708b0340dceaa62df159c943755
tree39a34260c1a873c0a2b66b49fe543988e78c6615
parentd46d010b770bfdfbc166a555e96f38bc8bf9d2a4
re PR tree-optimization/86544 (Popcount detection generates different code on C and C++)

gcc/ChangeLog:

2018-07-18  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/86544
* tree-ssa-phiopt.c (cond_removal_in_popcount_pattern): Handle comparision with EQ_EXPR
in last stmt.

gcc/testsuite/ChangeLog:

2018-07-18  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/86544
* g++.dg/tree-ssa/pr86544.C: New test.

From-SVN: r262864
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr86544.C [new file with mode: 0644]
gcc/tree-ssa-phiopt.c