https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114435
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:1065a7db6f2a69770a85b4d53b9123b090dd1771 commit r15-895-g1065a7db6f2a69770a85b4d53b9123b090dd1771 Author: Richard Biener <rguent...@suse.de> Date: Wed May 29 10:41:51 2024 +0200 tree-optimization/114435 - pcom left around copies confusing SLP The following arranges for the pre-SLP vectorization scalar cleanup to be run when predictive commoning was applied to a loop in the function. This is similar to the complete unroll situation and facilitating SLP vectorization. Avoiding the SSA copies in predictive commoning itself isn't easy (and predcom also sometimes unrolls, asking for scalar cleanup). PR tree-optimization/114435 * tree-predcom.cc (tree_predictive_commoning): Queue the next scalar cleanup sub-pipeline to be run when we did something. * gcc.dg/vect/bb-slp-pr114435.c: New testcase.