From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 51B4F3858D35; Mon, 30 Oct 2023 21:52:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 51B4F3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698702768; bh=6OXWP/1Otd0ZW7CvJFNZ6yF3SlqaUn0wY8eWOIYiCfU=; h=From:To:Subject:Date:From; b=kIexH+g8csRtIRVxEObxZMZG+5D6sRNwMjeO9txYOILYpSpr2/OqjlVom3IECcjW3 nItA1PS/ZpNLR6U9bOnjDvs3fOVDh2+aPGWr219J36S8j45ouL3R4q3DegFnb7+zqs 6xL+4odeCd8Xtty0VUT2j7RyxnHR/5uBi/DycXU0= From: "zhendong.su at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112303] New: ICE on valid code at -O3 on x86_64-linux-gnu: verify_flow_info failed Date: Mon, 30 Oct 2023 21:52:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhendong.su at inf dot ethz.ch X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112303 Bug ID: 112303 Summary: ICE on valid code at -O3 on x86_64-linux-gnu: verify_flow_info failed Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zhendong.su at inf dot ethz.ch Target Milestone: --- This appears to be a recent regression. Compiler Explorer: https://godbolt.org/z/9h7K8eqs8 [578] % gcctk -v Using built-in specs. COLLECT_GCC=3Dgcctk COLLECT_LTO_WRAPPER=3D/local/suz-local/software/local/gcc-trunk/libexec/gcc= /x86_64-pc-linux-gnu/14.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --disable-bootstrap --enable-checking=3Dyes --prefix=3D/local/suz-local/software/local/gcc-trunk --enable-sanitizers --enable-languages=3Dc,c++ --disable-werror --enable-mu= ltilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 20231030 (experimental) (GCC) [579] % [579] % gcctk -O2 -c small.c [580] % [580] % gcctk -O3 -c small.c small.c: In function =E2=80=98j=E2=80=99: small.c:3:6: error: count of bb 228 not initialized 3 | int *j() { | ^ during GIMPLE pass: cunroll small.c:3:6: internal compiler error: verify_flow_info failed 0xbafcaf verify_flow_info() ../../gcc-trunk/gcc/cfghooks.cc:287 0x11718ff checking_verify_flow_info() ../../gcc-trunk/gcc/cfghooks.h:214 0x11718ff cleanup_tree_cfg_noloop ../../gcc-trunk/gcc/tree-cfgcleanup.cc:1154 0x11718ff cleanup_tree_cfg(unsigned int) ../../gcc-trunk/gcc/tree-cfgcleanup.cc:1205 0x1295dbd tree_unroll_loops_completely ../../gcc-trunk/gcc/tree-ssa-loop-ivcanon.cc:1565 0x1295ed3 execute ../../gcc-trunk/gcc/tree-ssa-loop-ivcanon.cc:1673 0x1295ed3 execute ../../gcc-trunk/gcc/tree-ssa-loop-ivcanon.cc:1663 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. [581] % [581] % cat small.c int a, b, d, e, f, **g, h; char c; int *j() { for (int i =3D 0; i < 3; i++) { for (h =3D 0; h < 2; h++) ; if (!b) break; } while (f) while (e) { c =3D 0; while (d) while (a) *g =3D j(); } return 0; }=