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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Feng Xue <f...@gcc.gnu.org>:

https://gcc.gnu.org/g:a9173a50e7e346a218323916e4d3add8552529ae

commit r15-4294-ga9173a50e7e346a218323916e4d3add8552529ae
Author: Feng Xue <f...@os.amperecomputing.com>
Date:   Fri Oct 11 14:55:05 2024 +0800

    vect: Fix inconsistency in fully-masked lane-reducing op generation
[PR116985]

    To align vectorized def/use when lane-reducing op is present in loop
reduction,
    we may need to insert extra trivial pass-through copies, which would cause
    mismatch between lane-reducing vector copy and loop mask index. This could
be
    fixed by computing the right index around a new counter on effective lane-
    reducing vector copies.

    2024-10-11 Feng Xue <f...@os.amperecomputing.com>

    gcc/
            PR tree-optimization/116985
            * tree-vect-loop.cc (vect_transform_reduction): Compute loop mask
            index based on effective vector copies for reduction op.

    gcc/testsuite/
            PR tree-optimization/116985
            * gcc.dg/vect/pr116985.c: New testcase.

Reply via email to