[Bug tree-optimization/110766] [13 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: in gimple_phi_arg_def_from_edge, at gimple.h:4699

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 27 10:34:45 GMT 2023


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

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

https://gcc.gnu.org/g:7004272e9b16e801eb856a991930d81e9c501532

commit r13-7611-g7004272e9b16e801eb856a991930d81e9c501532
Author: Richard Biener <rguenther@suse.de>
Date:   Mon Jul 24 08:40:19 2023 +0200

    tree-optimization/110766 - missing PHI location check

    The following adds a missing PHI location check before querying
    the loop latch PHI arg from it.

            PR tree-optimization/110766
            * tree-scalar-evolution.cc
            (analyze_and_compute_bitwise_induction_effect): Check the PHI
            is defined in the loop header.

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

    (cherry picked from commit fb132cdfb204bc12851eb1d5852eef6f03c13af3)


More information about the Gcc-bugs mailing list