r255383 - in /branches/gimple-linterchange/gcc:...

rguenth@gcc.gnu.org rguenth@gcc.gnu.org
Mon Dec 4 15:08:00 GMT 2017


Author: rguenth
Date: Mon Dec  4 15:08:56 2017
New Revision: 255383

URL: https://gcc.gnu.org/viewcvs?rev=255383&root=gcc&view=rev
Log:
2017-12-04  Richard Biener  <rguenther@suse.de>

	* tree-vectorizer.h (check_reduction_path): Declare.
	* tree-vect-loop.c (check_reduction_path): New function, split out
	from ...
	(vect_is_simple_reduction): ... here.
	* gimple-loop-interchange.cc: Include tree-vectorizer.h.
	(loop_cand::analyze_iloop_reduction_var): Use single_imm_use.
	Properly check for a supported reduction operation and a
	valid expression if the reduction covers multiple stmts.
	(prepare_perfect_loop_nest): Simpify allocation.
	(pass_linterchange::execute): Likewise.

	* gcc.dg/tree-ssa/loop-interchange-1.c: Add fast-math flags.
	* gcc.dg/tree-ssa/loop-interchange-1b.c: New test variant.
	* gcc.dg/tree-ssa/loop-interchange-4.c: XFAIL.

Added:
    branches/gimple-linterchange/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-1b.c
Modified:
    branches/gimple-linterchange/gcc/gimple-loop-interchange.cc
    branches/gimple-linterchange/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-1.c
    branches/gimple-linterchange/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-4.c
    branches/gimple-linterchange/gcc/testsuite/gfortran.dg/pr81303.f
    branches/gimple-linterchange/gcc/tree-vect-loop.c
    branches/gimple-linterchange/gcc/tree-vectorizer.h



More information about the Gcc-cvs mailing list