aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/go-lang.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-01-04 14:36:06 +0100
committerJakub Jelinek <jakub@redhat.com>2021-01-04 14:36:06 +0100
commit24cd9afe617a39801d190418cf3fbab3bc3742a7 (patch)
treebf580b45d997d0ebbe977b7a323cb5e64c945cb2 /gcc/go/go-lang.c
parent39bd65faee3bafe2dc067e5fedb5079896551a8a (diff)
downloadgcc-24cd9afe617a39801d190418cf3fbab3bc3742a7.zip
gcc-24cd9afe617a39801d190418cf3fbab3bc3742a7.tar.gz
gcc-24cd9afe617a39801d190418cf3fbab3bc3742a7.tar.bz2
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 <jakub@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.
Diffstat (limited to 'gcc/go/go-lang.c')
0 files changed, 0 insertions, 0 deletions