[Bug tree-optimization/48765] ICE in vect_transform_stmt
irar at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 28 19:52:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48765
--- Comment #4 from irar at gcc dot gnu.org 2011-04-28 19:50:30 UTC ---
Author: irar
Date: Thu Apr 28 19:50:28 2011
New Revision: 173132
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173132
Log:
PR tree-optimization/48765
* tree-vectorizer.h (vect_make_slp_decision): Return bool.
* tree-vect-loop.c (vect_analyze_loop_operations): Add new
argument to indicate if loop aware SLP is being used. Scan
the statements and update the vectorization factor
according to the type of
vectorization before statement analysis.
(vect_analyze_loop_2): Get a return value from
vect_make_slp_decision, pass it to
vect_analyze_loop_operations.
(vectorizable_reduction): Set number of copies to 1 in case of
pure SLP statement.
* tree-vect-stmts.c (vectorizable_conversion,
vectorizable_assignment, vectorizable_shift,
vectorizable_operation, vectorizable_type_demotion,
vectorizable_type_promotion, vectorizable_store,
vectorizable_load): Likewise.
(vectorizable_condition): Move the check that it is not SLP
vectorization before the number of copies check.
* tree-vect-slp.c (vect_make_slp_decision): Return TRUE if
decided to vectorize the loop using SLP.
Added:
trunk/gcc/testsuite/gcc.dg/vect/pr48765.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-loop.c
trunk/gcc/tree-vect-slp.c
trunk/gcc/tree-vect-stmts.c
trunk/gcc/tree-vectorizer.h
More information about the Gcc-bugs
mailing list