https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80457
--- Comment #5 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Author: wschmidt Date: Tue May 16 20:18:05 2017 New Revision: 248130 URL: https://gcc.gnu.org/viewcvs?rev=248130&root=gcc&view=rev Log: [gcc] 2017-05-16 James Greenhalgh <james.greenha...@arm.com> Bill Schmidt <wschm...@linux.vnet.ibm.com> PR tree-optimization/80457 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost of all arguments to a statement as scalar_to_vec operations. (vectorizable_call): Adjust call to vect_model_simple_cost for new parameter. (vectorizable_conversion): Likewise. (vectorizable_assignment): Likewise. (vectorizable_shift): Likewise. (vectorizable_operation): Likewise. (vectorizable_comparison): Likewise. (vect_is_simple_cond): Record the def types for operands. (vectorizable_condition): Likewise, call vect_model_simple_cost. * tree-vectorizer.h (vect_model_simple_cost): Add new parameter for statement argument count. [gcc/testsuite] 2017-05-16 James Greenhalgh <james.greenha...@arm.com> Bill Schmidt <wschm...@linux.vnet.ibm.com> PR tree-optimization/80457 * gcc.target/powerpc/pr78604.c: Verify that vectorized COND_EXPRs call vect_model_simple_cost. Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.target/powerpc/pr78604.c trunk/gcc/tree-vect-stmts.c trunk/gcc/tree-vectorizer.h