https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117874
--- Comment #9 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:af9a3fe6a52974252516b3eea4c5ab5caae47b4b commit r15-5894-gaf9a3fe6a52974252516b3eea4c5ab5caae47b4b Author: Richard Biener <rguent...@suse.de> Date: Tue Dec 3 08:56:35 2024 +0100 tree-optimization/117874 - optimize SLP discovery budget use The following tries to avoid eating into the SLP discovery limit when we can do cheaper checks first. Together with the previous patch this allows to use two-lane SLP discovery for mult_su3_an in 433.milc. PR tree-optimization/117874 * tree-vect-slp.cc (vect_build_slp_tree_2): Perform early reassoc checks before eating into discovery limit.