From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2C7863858CDA; Wed, 1 Nov 2023 07:32:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C7863858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698823959; bh=OpKhsM+HB0+XX+0o2tpT8hP75vkioze4etouTFvgQQc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=txC6pRFjFrMH6j+pGmg9vbLEmsQ9zV2/dYq+a4IjWg+FlBqZjOJJ7zxHAFk0XYXEx z4D+I9qfK6YEuyzQe+zAgbY7mK7xK0qldPcCgZu/CoP56tNiAWxyM96mO0z6vn8VmA 90lkTJDEsPrmoSBQ3xyTMdOpOqzaAWwiB+jtZEgg= From: "zhendong.su at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111043] [14 regression] ICE in adjust_loop_info_after_peeling, at tree-ssa-loop-ivcanon.cc:1068 Date: Wed, 01 Nov 2023 07:32:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zhendong.su at inf dot ethz.ch X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D111043 --- Comment #9 from Zhendong Su --- Another at -O2 and -O3: [545] % 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 20231101 (experimental) (GCC)=20 [546] %=20 [546] % gcctk -O2 small.c during GIMPLE pass: ch_vect small.c: In function =E2=80=98main=E2=80=99: small.c:21:5: internal compiler error: in adjust_loop_info_after_peeling, at tree-ssa-loop-ivcanon.cc:1069 21 | int main() { | ^~~~ 0x8736bd adjust_loop_info_after_peeling(loop*, int, bool) ../../gcc-trunk/gcc/tree-ssa-loop-ivcanon.cc:1069 0x1287a14 copy_headers ../../gcc-trunk/gcc/tree-ssa-loop-ch.cc:1108 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. [547] %=20 [547] % cat small.c int a, *b, c, *d, e, f; static void g() { int h; while (1) while (1) { int *i =3D 0; h =3D 0; while (c) *d =3D 1; if (e) break; if ((h ^ f) > f) for (; e < 1; e++) ; for (a =3D 0; a < 1; a++) if (*i) break; b =3D &h; } } int main() { if (a) g(); return 0; }=