Optimize condition reductions where the result is an integer induction variable
authorAlan Hayward <alan.hayward@arm.com>
Fri, 13 Nov 2015 10:51:34 +0000 (10:51 +0000)
committerAlan Hayward <alahay01@gcc.gnu.org>
Fri, 13 Nov 2015 10:51:34 +0000 (10:51 +0000)
commit360e3406fb78ed13f168c25851b343ec6411aa12
treeb61189c71f01d29decdb64e849a2f12a4403817f
parent8f215e0f07c33e511ed478152330451ede1e6285
Optimize condition reductions where the result is an integer induction variable

2015-11-13  Alan Hayward <alan.hayward@arm.com>

gcc/
PR tree-optimization/66558
* tree-vect-loop.c (is_integer_induction):Add.
(vectorizable_reduction): Add integer induction checks.

gcc/testsuite/
PR tree-optimization/66558
* gcc.dg/vect/pr65947-1.c: Add checks.
* gcc.dg/vect/pr65947-2.c: Add checks.
* gcc.dg/vect/pr65947-3.c: Add checks.
* gcc.dg/vect/pr65947-4.c: Add checks.
* gcc.dg/vect/pr65947-5.c: Add checks.
* gcc.dg/vect/pr65947-6.c: Add checks.
* gcc.dg/vect/pr65947-10.c: Add checks.
* gcc.dg/vect/pr65947-12.c: New test.
* gcc.dg/vect/pr65947-13.c: New test.

From-SVN: r230297
13 files changed:
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr65947-1.c
gcc/testsuite/gcc.dg/vect/pr65947-10.c
gcc/testsuite/gcc.dg/vect/pr65947-12.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr65947-13.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr65947-2.c
gcc/testsuite/gcc.dg/vect/pr65947-3.c
gcc/testsuite/gcc.dg/vect/pr65947-4.c
gcc/testsuite/gcc.dg/vect/pr65947-5.c
gcc/testsuite/gcc.dg/vect/pr65947-6.c
gcc/tree-vect-loop.c
gcc/tree-vectorizer.h