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

--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kewen Lin <li...@gcc.gnu.org>:

https://gcc.gnu.org/g:090d83c25508c108756a534c765d2fa8c07eb261

commit r14-2490-g090d83c25508c108756a534c765d2fa8c07eb261
Author: Kewen Lin <li...@linux.ibm.com>
Date:   Wed Jul 12 21:23:21 2023 -0500

    vect: Adjust vectorizable_load costing on VMAT_ELEMENTWISE and
VMAT_STRIDED_SLP

    This patch adjusts the cost handling on VMAT_ELEMENTWISE
    and VMAT_STRIDED_SLP in function vectorizable_load.  We
    don't call function vect_model_load_cost for them any more.

    As PR82255 shows, we don't always need a vector construction
    there, moving costing next to the transform can make us only
    cost for vector construction when it's actually needed.
    Besides, it can count the number of loads consistently for
    some cases.

             PR tree-optimization/82255

    gcc/ChangeLog:

            * tree-vect-stmts.cc (vectorizable_load): Adjust the cost handling
            on VMAT_ELEMENTWISE and VMAT_STRIDED_SLP without calling
            vect_model_load_cost.
            (vect_model_load_cost): Assert it won't get VMAT_ELEMENTWISE and
            VMAT_STRIDED_SLP any more, and remove their related handlings.

    gcc/testsuite/ChangeLog:

            * gcc.dg/vect/costmodel/ppc/costmodel-pr82255.c: New test.

    2023-06-13  Bill Schmidt  <wschm...@linux.ibm.com>
                Kewen Lin  <li...@linux.ibm.com>
  • [Bug tree-optimization/82255] V... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to