r263119 - in /trunk/gcc: ChangeLog tree-vect-lo...
rsandifo@gcc.gnu.org
rsandifo@gcc.gnu.org
Tue Jul 31 14:21:00 GMT 2018
Author: rsandifo
Date: Tue Jul 31 14:21:28 2018
New Revision: 263119
URL: https://gcc.gnu.org/viewcvs?rev=263119&root=gcc&view=rev
Log:
[04/46] Factor out the test for a valid reduction input
vect_is_slp_reduction and vect_is_simple_reduction had two instances
each of:
&& (is_gimple_assign (def_stmt)
|| is_gimple_call (def_stmt)
|| STMT_VINFO_DEF_TYPE (vinfo_for_stmt (def_stmt))
== vect_induction_def
|| (gimple_code (def_stmt) == GIMPLE_PHI
&& STMT_VINFO_DEF_TYPE (vinfo_for_stmt (def_stmt))
== vect_internal_def
&& !is_loop_header_bb_p (gimple_bb (def_stmt)))))
This patch splits it out in a subroutine.
2018-07-31 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* tree-vect-loop.c (vect_valid_reduction_input_p): New function,
split out from...
(vect_is_slp_reduction): ...here...
(vect_is_simple_reduction): ...and here. Remove repetition of tests
that are already known to be false.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-vect-loop.c
More information about the Gcc-cvs
mailing list