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

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

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

commit r14-5276-g8ebcea91e24964ec52ca2caf9f8585f3a785f7d5
Author: Richard Biener <rguent...@suse.de>
Date:   Thu Nov 9 09:41:10 2023 +0100

    tree-optimization/112444 - avoid bougs PHI value-numbering

    With .DEFERRED_INIT ssa_undefined_value_p () can return true for
    values we did not visit (because they proved unreachable) but
    are not .VN_TOP.  Avoid using those as value which, because they
    are not visited, are assumed to be defined outside of the region.

            PR tree-optimization/112444
            * tree-ssa-sccvn.cc (visit_phi): Avoid using not visited
            defs as undefined vals.

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

Reply via email to