]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/111125 - properly cost BB reduction remain stmt handling
authorRichard Biener <rguenther@suse.de>
Thu, 24 Aug 2023 08:30:12 +0000 (10:30 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 24 Aug 2023 09:35:15 +0000 (11:35 +0200)
commite80f7c13f64e10c6a3354c5d6b42da60b21ed0b8
tree4f43152b353354d1c421f575a3eaed91c4a132bf
parentaa81e80a5ae663f169496c580ba30ae281c83940
tree-optimization/111125 - properly cost BB reduction remain stmt handling

We assume that all root stmts which compose the total reduction chain
are vectorized but fail to account for the cost of adding back the
scalar defs we are not vectorizing.  The following rectifies this,
fixing the gcc.dg/tree-ssa/slsr-11.c FAIL on aarch64.

PR tree-optimization/111125
* tree-vect-slp.cc (vectorizable_bb_reduc_epilogue): Account
for the remain_defs processing.
gcc/tree-vect-slp.cc