This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r186838 - in /branches/cilkplus/gcc: ChangeLog....
- From: bviyer at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 25 Apr 2012 19:27:56 -0000
- Subject: r186838 - in /branches/cilkplus/gcc: ChangeLog....
Author: bviyer
Date: Wed Apr 25 19:27:55 2012
New Revision: 186838
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186838
Log:
Insert elem. functions when loop is vectorized.
2012-04-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
* elem-function.c (find_elem_fn_param_type_1): New function.
(find_elem_fn_param_type): Likewise.
(find_elem_fn_name): Likewise.
(is_elem_fn): Make it unstatic.
* tree-data-ref.c (find_data_references_in_stmt): Added support for
functions that can be made to elemental functions.
* tree-vect-stmts.c (vect_get_vec_def_for_operand): Added a check for
the parameters to see whether it is uniform, linear or neither.
(vectorizable_function): Handled code to substitute regular function
with the equivalent elemental function.
(vectorizable_call): Set the function type for substituted elemental
function.
* tree.h (enum elem_fn_parm_type): New enum.
Modified:
branches/cilkplus/gcc/ChangeLog.cilk
branches/cilkplus/gcc/cilk.h
branches/cilkplus/gcc/elem-function.c
branches/cilkplus/gcc/tree-data-ref.c
branches/cilkplus/gcc/tree-vect-stmts.c
branches/cilkplus/gcc/tree.h