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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Richard Biener
<[email protected]>:

https://gcc.gnu.org/g:55fe9aa0923699ee7232448f29462a08d94eae81

commit r16-9270-g55fe9aa0923699ee7232448f29462a08d94eae81
Author: Richard Biener <[email protected]>
Date:   Mon Jun 15 10:37:29 2026 +0200

    tree-optimization/125786 - do not rewrite stmts in reassoc

    We may not simply rewrite def stmts of associative operands as
    they might have multiple uses.  The following appropriately
    creates a new stmt instead.

            PR tree-optimization/125786
            * tree-ssa-reassoc.cc (optimize_vec_cond_expr): Create a new
            stmt instead of rewriting an existing possibly multi-use one.

            * gcc.dg/torture/pr125786.c: New testcase.

    (cherry picked from commit b3763e32ea4b0bf9e68bb89eac9bf2d7ab92680c)

Reply via email to