re PR tree-optimization/37021 (Fortran Complex reduction / multiplication not vectorized)
authorRichard Biener <rguenther@suse.de>
Tue, 12 May 2015 11:55:40 +0000 (11:55 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 12 May 2015 11:55:40 +0000 (11:55 +0000)
commit6876e5bcd4e69cec6ef3507bb4ca64e22373b379
tree48f20620956e1e4536e3d46f35bc962b7f2c4802
parenteed4068d5d3916f9560246873069bfaaf7b75afe
re PR tree-optimization/37021 (Fortran Complex reduction / multiplication not vectorized)

2015-05-12  Richard Biener  <rguenther@suse.de>

PR tree-optimization/37021
* tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
(SLP_TREE_TWO_OPERATORS): New define.
* tree-vect-slp.c (vect_create_new_slp_node): Initialize
SLP_TREE_TWO_OPERATORS.
(vect_build_slp_tree_1): Allow two mixing plus/minus in an
SLP node.
(vect_build_slp_tree): Adjust.
(vect_analyze_slp_cost_1): Likewise.
(vect_schedule_slp_instance): Vectorize mixing plus/minus by
emitting two vector stmts and mixing the results.

* gcc.target/i386/vect-addsub.c: New testcase.

From-SVN: r223059
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/vect-addsub.c [new file with mode: 0644]
gcc/tree-vect-slp.c
gcc/tree-vectorizer.h