]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/98855 - fix some vectorizer cost issues
authorRichard Biener <rguenther@suse.de>
Thu, 4 Feb 2021 11:08:47 +0000 (12:08 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 4 Feb 2021 12:02:09 +0000 (13:02 +0100)
commit7002a33d1ba81e4577d965fb9daaee146b31faa8
tree75b50e60b8279147077ef320209b7bd1ac11358f
parentf0e618faeb619ec02dabbef203a5575fca44a7f7
tree-optimization/98855 - fix some vectorizer cost issues

This fixes us not costing vectorized bswap for SLP as well as
avoiding biasing to the vectorized side when costing single-argument
PHIs.  Instead we assume coalescing here and cost them with zero cost
for both the scalar and vectorized code.

This doesn't fix the PR on its own.

2021-02-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/98855
* tree-vect-loop.c (vectorizable_phi): Do not cost
single-argument PHIs.
* tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
* tree-vect-stmts.c (vectorizable_bswap): Also perform
costing for SLP operation.
gcc/tree-vect-loop.c
gcc/tree-vect-slp.c
gcc/tree-vect-stmts.c
This page took 0.061543 seconds and 5 git commands to generate.