]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid costing vector stmts with count == 0
authorRichard Biener <rguenther@suse.de>
Fri, 5 Sep 2025 09:55:50 +0000 (11:55 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 5 Sep 2025 11:11:39 +0000 (13:11 +0200)
commit2965a67c7ef34de74904b600a3e4a4cc858ea37b
tree16bd0e3095c2fccee5be4030647c58795243407d
parentdad6f6eb9b3c96a7fd6c13836a85a4f66373ff0c
Avoid costing vector stmts with count == 0

This avoids confusing the backends.

* tree-vect-slp.cc (vectorizable_bb_reduc_epilogue): Do not
cost zero remaining scalar stmts.
(vectorizable_slp_permutation): Do not cost zero actual
permutations.
* tree-vect-stmts.cc (vectorizable_load): Likewise.
gcc/tree-vect-slp.cc
gcc/tree-vect-stmts.cc