]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/97500 - avoid SLP backedges for inductions
authorRichard Biener <rguenther@suse.de>
Wed, 21 Oct 2020 08:54:54 +0000 (10:54 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 21 Oct 2020 09:43:06 +0000 (11:43 +0200)
commitd94093013877cde3dce5c243099ad54668849400
tree0040e54ee46f87dec3ba0238146696a6e0a6165a
parent9b5d50b7c6e34267b40bdeb4c145e9132d83762d
tree-optimization/97500 - avoid SLP backedges for inductions

Inductions are not vectorized as cycle but materialized from SCEV data.
Filling in backedge SLP nodes confuses this process.

2020-10-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97500
* tree-vect-slp.c (vect_analyze_slp_backedges): Do not
fill backedges for inductions.

* gfortran.dg/pr97500.f90: New testcase.
gcc/testsuite/gfortran.dg/pr97500.f90 [new file with mode: 0644]
gcc/tree-vect-slp.c
This page took 0.059726 seconds and 5 git commands to generate.