r226283 - in /branches/gomp-4_0-branch/gcc: Cha...

vries@gcc.gnu.org vries@gcc.gnu.org
Mon Jul 27 23:45:00 GMT 2015


Author: vries
Date: Mon Jul 27 23:45:17 2015
New Revision: 226283

URL: https://gcc.gnu.org/viewcvs?rev=226283&root=gcc&view=rev
Log:
Check TYPE_OVERFLOW_WRAPS for parloops reductions

2015-07-28  Tom de Vries  <tom@codesourcery.com>

	backport from trunk:
	2015-07-23  Tom de Vries  <tom@codesourcery.com>

	* tree-parloops.c (gather_scalar_reductions): Add arg to call to
	vect_force_simple_reduction.
	* tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
	(vect_is_simple_reduction_1): Add and handle
	need_wrapping_integral_overflow parameter.
	(vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
	need_wrapping_integral_overflow parameter.
	(vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
	* tree-vectorizer.h (vect_force_simple_reduction): Add parameter to decl.

	* gcc.dg/autopar/outer-4.c: Add xfail.
	* gcc.dg/autopar/outer-5.c: Same.
	* gcc.dg/autopar/outer-6.c: Same.
	* gcc.dg/autopar/reduc-2.c: Same.
	* gcc.dg/autopar/reduc-2char.c: Same.
	* gcc.dg/autopar/reduc-2short.c: Same.
	* gcc.dg/autopar/reduc-8.c: Same.
	* gcc.dg/autopar/uns-outer-4.c: New test.
	* gcc.dg/autopar/uns-outer-5.c: New test.
	* gcc.dg/autopar/uns-outer-6.c: New test.

Added:
    branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/autopar/uns-outer-4.c
      - copied, changed from r226282, branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/autopar/outer-4.c
    branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/autopar/uns-outer-5.c
    branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/autopar/uns-outer-6.c
      - copied, changed from r226282, branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/autopar/outer-6.c
Modified:
    branches/gomp-4_0-branch/gcc/ChangeLog.gomp
    branches/gomp-4_0-branch/gcc/testsuite/ChangeLog.gomp
    branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/autopar/outer-4.c
    branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/autopar/outer-5.c
    branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/autopar/outer-6.c
    branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/autopar/reduc-2.c
    branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/autopar/reduc-2char.c
    branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/autopar/reduc-2short.c
    branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/autopar/reduc-8.c
    branches/gomp-4_0-branch/gcc/tree-parloops.c
    branches/gomp-4_0-branch/gcc/tree-vect-loop.c
    branches/gomp-4_0-branch/gcc/tree-vectorizer.h



More information about the Gcc-cvs mailing list