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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tamar Christina <tnfch...@gcc.gnu.org>:

https://gcc.gnu.org/g:086031c058598512d09bf898e4db3735b3e1f22c

commit r15-6811-g086031c058598512d09bf898e4db3735b3e1f22c
Author: Alex Coplan <alex.cop...@arm.com>
Date:   Mon Jun 24 13:54:48 2024 +0100

    vect: Also cost gconds for scalar [PR118211]

    Currently we only cost gconds for the vector loop while we omit costing
    them when analyzing the scalar loop; this unfairly penalizes the vector
    loop in the case of loops with early exits.

    This (together with the previous patches) enables us to vectorize
    std::find with 64-bit element sizes.

    gcc/ChangeLog:

            PR tree-optimization/118211
            PR tree-optimization/116126
            * tree-vect-loop.cc (vect_compute_single_scalar_iteration_cost):
            Don't skip over gconds.

Reply via email to