[Bug tree-optimization/106883] SLSR may generate signed wrap

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 23 16:04:10 GMT 2026


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

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pinskia@gcc.gnu.org>:

https://gcc.gnu.org/g:8ae508ca5a3cf5ed4c0d511bb41c47ed005e5a06

commit r16-7002-g8ae508ca5a3cf5ed4c0d511bb41c47ed005e5a06
Author: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Date:   Fri Jan 16 20:25:56 2026 -0800

    slsr: fix overflow from create_add_on_incoming_edge [PR106883]

    This fixes the overlfow that might be introduced from
    creater_add_on_incoming_edge. I have not found a testcase where this
    shows up, there possibility could be.

            PR tree-optimization/106883

    gcc/ChangeLog:

            * gimple-ssa-strength-reduction.cc (create_add_on_incoming_edge):
Rewrite
            the new addition on the edge too.

    Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>


More information about the Gcc-bugs mailing list