tree-loop-distribution.c (const_with_all_bytes_same): New function.
authorJakub Jelinek <jakub@redhat.com>
Mon, 8 Apr 2013 08:20:39 +0000 (10:20 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 8 Apr 2013 08:20:39 +0000 (10:20 +0200)
commit401f3a81a6744d27083b8dc65460b5b3e37d3c3a
tree77ea0cbf6db3539a8026292020faae8c681fbc6f
parent03ed99a89eff22949d9983cb70092127a7a0c190
tree-loop-distribution.c (const_with_all_bytes_same): New function.

* tree-loop-distribution.c (const_with_all_bytes_same): New function.
(generate_memset_builtin): Only handle integer_all_onesp as -1 val if
TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
if possible to compute val.
(classify_partition): Verify CONSTRUCTOR doesn't have any elts.
For QImode integers don't require anything about precision.  Use
const_with_all_bytes_same to find out if the constant doesn't have
repeated bytes in it.

* gcc.dg/pr56837.c: New test.
* gcc.dg/tree-ssa/ldist-19.c: Don't check for
"generated memset minus one".

From-SVN: r197568
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr56837.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ldist-19.c
gcc/tree-loop-distribution.c