[Bug tree-optimization/126457] [16/17 Regression] ICE at -O2/3 on aarch64 during GIMPLE pass: vect

"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126457

--- Comment #2 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:3e6ac9b8d87704323df1f12214c29725c4e5eb9d

commit r17-2786-g3e6ac9b8d87704323df1f12214c29725c4e5eb9d
Author: Richard Biener <[email protected]>
Date:   Wed Jul 29 11:32:48 2026 +0200

    tree-optimization/126457 - robustify reduction analysis

    The following adds an early out for unsupported reduction operations
    to avoid ICEing when the assumption that the GIMPLE stmt operand
    number matches the SLP operand number breaks, as is for .CLZ with
    two operands.

            PR tree-optimization/126457
            * tree-vect-loop.cc (vectorizable_reduction): Reject
            operations where not all operands correspond to a SLP
            child early.

            * gcc.dg/vect/vect-pr126457.c: New testcase.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.