https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116083

--- Comment #5 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:27b444a41a6afab8020183c4c5d3361e21635031

commit r15-5918-g27b444a41a6afab8020183c4c5d3361e21635031
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Dec 3 14:37:21 2024 +0100

    tree-optimization/116083 - SLP discovery slowness

    One large constant factor of SLP discovery is figuring the vector
    type for each individual lane of each node.  That should be redundant
    since the structual comparison of stmts should ensure they end up
    the same so the following computes them only once per node rather
    than for each lane.

    This cuts the compile-time of the testcase in half.

            PR tree-optimization/116083
            * tree-vect-slp.cc (vect_build_slp_tree_1): Compute vector
            type and max_nunits only once.  Remove check for matching
            vector type of each lane and replace it with matching check
            for LHS type.

Reply via email to