https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124222
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:76b8869f08a6ca99c72596e481dd91b2d545643a commit r17-141-g76b8869f08a6ca99c72596e481dd91b2d545643a Author: Richard Biener <[email protected]> Date: Wed Feb 25 09:08:07 2026 +0100 tree-optimization/124222 - rewrite BB SLP costing scalar coverage The following uses the vector coverage indicated by SLP_TREE_TYPE to improve and simplify BB vector scalar costing, finally handling SLP patterns properly. PR tree-optimization/124222 * tree-vect-slp.cc (vect_slp_gather_vectorized_scalar_stmts): Remove. (vect_bb_slp_scalar_cost): Simplify by using SLP_TREE_TYPE and a use-def walk of the scalar stmts SSA uses. (vect_bb_vectorization_profitable_p): Simplify. * gcc.dg/vect/costmodel/x86_64/costmodel-pr124222.c: New testcase.
