https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95771

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:24cd9afe617a39801d190418cf3fbab3bc3742a7

commit r11-6443-g24cd9afe617a39801d190418cf3fbab3bc3742a7
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Mon Jan 4 14:36:06 2021 +0100

    loop-niter: Recognize popcount idioms even with char, short and __int128
[PR95771]

    As the testcase shows, we punt unnecessarily on popcount loop idioms if
    the type is smaller than int or larger than long long.
    Smaller type than int can be handled by zero-extending the argument to
    unsigned int, and types twice as long as long long by doing
    __builtin_popcountll on both halves of the __int128.

    2020-01-04  Jakub Jelinek  <ja...@redhat.com>

            PR tree-optimization/95771
            * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle
types
            with precision smaller than int's precision and types with
precision
            twice as large as long long.  Formatting fixes.

            * gcc.target/i386/pr95771.c: New test.

Reply via email to