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

--- Comment #36 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:79b6a4875f3dcc4bbca9242313b3edc1bad69660

commit r13-7533-g79b6a4875f3dcc4bbca9242313b3edc1bad69660
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Jul 4 10:29:26 2023 +0200

    tree-optimization/110228 - avoid undefs in ifcombine more thoroughly

    The following replaces the simplistic gimple_uses_undefined_value_p
    with the conservative mark_ssa_maybe_undefs approach as already
    used by LIM and IVOPTs.  This is to avoid exposing an unconditional
    uninitialized read on a path from entry by if-combine.

            PR tree-optimization/110228
            * tree-ssa-ifcombine.cc (pass_tree_ifcombine::execute):
            Mark SSA may-undefs.
            (bb_no_side_effects_p): Check stmt uses for undefs.

            * gcc.dg/torture/pr110228.c: New testcase.
            * gcc.dg/uninit-pr101912.c: Un-XFAIL.

    (cherry picked from commit b083203f053f1666e9cc1ded2abdf4e1688d1ec0)

Reply via email to