From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 744783858C00; Sun, 3 Sep 2023 10:06:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 744783858C00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693735570; bh=+WEBZmDuluZ6IWXt8l/9pJ8Wxjq8rK1VsgsRPkpr8sU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eoodt9RtNlHrRImxepAer816vzPOExqJPPLs0RCzw/Vu19pZJ4BqZBF3ZQRKLyFWK K+sjlzoesecg++BqHH54hDnFDDbm/L6cBAc9/tBuX2bQNibDfKCqH/mYMr7EHL7bTe MCA8DDDHn9KcjbL2474iuQUpouELXP98sOLyUJ8A= 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: Sun, 03 Sep 2023 10:06:08 +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: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 Zhendong Su changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zhendong.su at inf dot eth= z.ch --- Comment #6 from Zhendong Su --- Another reproducer at -O3. Compiler Explorer: https://godbolt.org/z/GYWG1G47K [576] % gcctk -v Using built-in specs. COLLECT_GCC=3Dgcctk COLLECT_LTO_WRAPPER=3D/local/home/suz/suz-local/software/local/gcc-trunk/bi= n/../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 20230902 (experimental) (GCC)=20 [577] %=20 [577] % gcctk -O3 small.c during GIMPLE pass: ch_vect small.c: In function =E2=80=98main=E2=80=99: small.c:3:5: internal compiler error: in adjust_loop_info_after_peeling, at tree-ssa-loop-ivcanon.cc:1068 3 | int main() { | ^~~~ 0x8299be adjust_loop_info_after_peeling(loop*, int, bool) ../../gcc-trunk/gcc/tree-ssa-loop-ivcanon.cc:1068 0x1154a33 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. [578] % cat small.c int a =3D 1, b; unsigned c =3D 2; int main() { while (a >=3D c) ; while (a && b) ; while (!a || a >=3D c) c++; return 0; }=