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

--- Comment #4 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:65ee4bb8ec3d6af1a45b6cc93912608f0d124562

commit r16-5329-g65ee4bb8ec3d6af1a45b6cc93912608f0d124562
Author: Richard Biener <[email protected]>
Date:   Thu Nov 6 13:19:35 2025 +0100

    [x86] avoid using masked vector epilogues when no scalar epilog is needed

    The following arranges for avoiding masked vector epilogues when we'll
    eventually arrive at a vector epilogue with VF == 1 which implies no
    scalar epilog will be necessary.

    This avoids regressing performance in OpenColorIO when the
    avx512_masked_epilogues tuning is enabled.  A testcase for one
    example case is shown in PR122573.

            PR tree-optimization/122573
            * config/i386/i386.cc (ix86_vector_costs::finish_cost): Avoid
            using masked epilogues when an SSE epilogue would have a VF of one.

            * gcc.dg/vect/costmodel/x86_64/costmodel-pr122573.c: New testcase.

Reply via email to