diff options
author | Richard Biener <rguenther@suse.de> | 2021-01-04 09:53:11 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-01-04 10:47:43 +0100 |
commit | 8837f82e4bab1b5405cf034eab9b3e83afc563ad (patch) | |
tree | aaf2a349e092221769a6a891d3d398f3f1dd73a5 /gcc/tree-ssa-loop-niter.c | |
parent | ad64e807ffca93e927b68f1aa0cea54dacbe9afd (diff) | |
download | gcc-8837f82e4bab1b5405cf034eab9b3e83afc563ad.zip gcc-8837f82e4bab1b5405cf034eab9b3e83afc563ad.tar.gz gcc-8837f82e4bab1b5405cf034eab9b3e83afc563ad.tar.bz2 |
tree-optimization/98291 - allow SLP more vectorization of reductions
When the VF is one a SLP reduction is in-order and thus we can
vectorize even when the reduction op is not associative.
2021-01-04 Richard Biener <rguenther@suse.de>
PR tree-optimization/98291
* tree-vect-loop.c (vectorizable_reduction): Bypass
associativity check for SLP reductions with VF 1.
* gcc.dg/vect/slp-reduc-11.c: New testcase.
* gcc.dg/vect/vect-reduc-in-order-4.c: Adjust.
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
0 files changed, 0 insertions, 0 deletions