re PR middle-end/82479 (missing popcount builtin detection)
authorKugan Vivekanandarajah <kuganv@linaro.org>
Sat, 16 Jun 2018 21:39:31 +0000 (21:39 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Sat, 16 Jun 2018 21:39:31 +0000 (21:39 +0000)
commit5126ae0c6eafd2bba09fc60a23cd9c0b292846c4
treee7ade1440d60638b78b1ca38cf5a18a29153c582
parente197e64ee8ab8e46de9069a8d951bed720a0fd67
re PR middle-end/82479 (missing popcount builtin detection)

gcc/ChangeLog:

2018-06-16  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/82479
* ipa-fnsummary.c (will_be_nonconstant_expr_predicate): Handle CALL_EXPR.
* tree-scalar-evolution.c (interpret_expr): Likewise.
(expression_expensive_p): Likewise.
* tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Likewise.
* tree-ssa-loop-niter.c (number_of_iterations_popcount): New.
(number_of_iterations_exit_assumptions): Use number_of_iterations_popcount.
(ssa_defined_by_minus_one_stmt_p): New.

gcc/testsuite/ChangeLog:

2018-06-16  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/82479
* gcc.dg/tree-ssa/popcount.c: New test.
* gcc.dg/tree-ssa/popcount2.c: New test.

From-SVN: r261682
gcc/ChangeLog
gcc/ipa-fnsummary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/popcount.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/popcount2.c [new file with mode: 0644]
gcc/tree-scalar-evolution.c
gcc/tree-ssa-loop-ivopts.c
gcc/tree-ssa-loop-niter.c