diff options
author | Richard Biener <rguenther@suse.de> | 2020-06-24 15:49:00 +0200 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:14:47 -0300 |
commit | 1ce17beb46733c594b388abb12cb0300c188db84 (patch) | |
tree | 4c5a3518f55e9ed6ff4f2d883aee9a35e8b9d9f4 /gcc/fortran/iresolve.c | |
parent | ec922bfc26a5f216f44903de62712d7ecf14aaf2 (diff) | |
download | gcc-1ce17beb46733c594b388abb12cb0300c188db84.zip gcc-1ce17beb46733c594b388abb12cb0300c188db84.tar.gz gcc-1ce17beb46733c594b388abb12cb0300c188db84.tar.bz2 |
tree-optimization/95866 - avoid vectorizing uniform SLP subgraphs
This avoids vectorizing SLP subgraphs that just compute uniform
operations on all-same operands. That fixes the less interesting
(but most embarrasing) part of the testcase in the PR. On the
way it also fixed a missing matches[0] reset in the last
refactoring touching that place.
2020-06-24 Richard Biener <rguenther@suse.de>
PR tree-optimization/95866
* tree-vect-slp.c (vect_slp_tree_uniform_p): New.
(vect_build_slp_tree_2): Properly reset matches[0],
ignore uniform constants.
* gcc.target/i386/pr95866-1.c: New testcase.
Diffstat (limited to 'gcc/fortran/iresolve.c')
0 files changed, 0 insertions, 0 deletions