re PR tree-optimization/80457 (vectorizable_condition does not update the vectorizer...
authorJames Greenhalgh <james.greenhalgh@arm.com>
Tue, 16 May 2017 20:18:05 +0000 (20:18 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Tue, 16 May 2017 20:18:05 +0000 (20:18 +0000)
commit4fc5ebf12924235c9b88a2c645624bc8b1ea266c
tree10188067ad9955e728e5cf75a7076e0a75af421a
parentbedee914ca77688f4c2d9138216b3a3b84fbb619
re PR tree-optimization/80457 (vectorizable_condition does not update the vectorizer cost model)

[gcc]

2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
    Bill Schmidt  <wschmidt@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.greenhalgh@arm.com>
    Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/80457
* gcc.target/powerpc/pr78604.c: Verify that vectorized COND_EXPRs
call vect_model_simple_cost.

Co-Authored-By: Bill Schmidt <wschmidt@linux.vnet.ibm.com>
From-SVN: r248130
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr78604.c
gcc/tree-vect-stmts.c
gcc/tree-vectorizer.h