re PR tree-optimization/67800 (Missed vectorization opportunity on x86 (DOT_PROD_EXPR...
authorRichard Biener <rguenther@suse.de>
Thu, 3 Dec 2015 08:43:22 +0000 (08:43 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 3 Dec 2015 08:43:22 +0000 (08:43 +0000)
commitb308d872e6c73178dd4351a866932709d398313a
tree6a2ebe9bca470003f81fe49464a25e8c1e2835f2
parent8349b02428926171736d2db4e075566b98b1604c
re PR tree-optimization/67800 (Missed vectorization opportunity on x86 (DOT_PROD_EXPR in non-reduction))

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

PR tree-optimization/67800
PR tree-optimization/68333
* tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
restriction to reduction contexts but allow SLP reductions as well.
(vect_recog_sad_pattern): Likewise.
(vect_recog_widen_sum_pattern): Likewise.

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

From-SVN: r231221
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/vect-pr67800.c [new file with mode: 0644]
gcc/tree-vect-patterns.c