From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2EF4F3858C2C; Tue, 13 Feb 2024 07:19:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2EF4F3858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707808771; bh=vxuUSKSeQj+h/HsBS8DmgrZ2lGoJK9TYECyyAFcczrM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=J1rApdy7KxnP5BUUMk9h8OKVAQ0SGhIxL8zmC3Rv6pRzD5oTxwioXq+Vm6B2MBCVV /DzN9SYWEt/uOdmfHsOLh6+3UjfFgGUz+cVdvbv9a2WwHWQv7aLPGlMqKJ6eZqaN5C Au3yWBMSspgOh8s+T2kKlvAPbldIORdPcMqP3T4A= From: "zhendong.su at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113895] [14 Regression] ice in in copy_reference_ops_from_ref, at tree-ssa-sccvn.cc:1144 Date: Tue, 13 Feb 2024 07:19:29 +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-checking, ice-on-valid-code 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: 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=3D113895 Zhendong Su changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zhendong.su at inf dot eth= z.ch --- Comment #2 from Zhendong Su --- Another related test: [534] % 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.1/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.1 20240213 (experimental) (GCC)=20 [535] %=20 [535] % gcctk -O1 small.c during GIMPLE pass: cunroll small.c: In function =E2=80=98main=E2=80=99: small.c:3:5: internal compiler error: in copy_reference_ops_from_ref, at tree-ssa-sccvn.cc:1156 3 | int main() { | ^~~~ 0x86357f copy_reference_ops_from_ref ../../gcc-trunk/gcc/tree-ssa-sccvn.cc:1156 0x1298c4a valueize_shared_reference_ops_from_ref ../../gcc-trunk/gcc/tree-ssa-sccvn.cc:1837 0x1298c4a valueize_shared_reference_ops_from_ref ../../gcc-trunk/gcc/tree-ssa-sccvn.cc:1832 0x1298c4a vn_reference_lookup(tree_node*, tree_node*, vn_lookup_kind, vn_reference_s**, bool, tree_node**, tree_node*, bool) ../../gcc-trunk/gcc/tree-ssa-sccvn.cc:4042 0x129d574 visit_reference_op_load ../../gcc-trunk/gcc/tree-ssa-sccvn.cc:5831 0x129d574 visit_stmt ../../gcc-trunk/gcc/tree-ssa-sccvn.cc:6352 0x129dc1f process_bb ../../gcc-trunk/gcc/tree-ssa-sccvn.cc:8124 0x129f4de do_rpo_vn_1 ../../gcc-trunk/gcc/tree-ssa-sccvn.cc:8725 0x12a0e53 do_rpo_vn(function*, edge_def*, bitmap_head*, bool, bool, bool, vn_lookup_kind) ../../gcc-trunk/gcc/tree-ssa-sccvn.cc:8829 0x11f6529 tree_unroll_loops_completely ../../gcc-trunk/gcc/tree-ssa-loop-ivcanon.cc:1554 0x11f6663 execute ../../gcc-trunk/gcc/tree-ssa-loop-ivcanon.cc:1673 0x11f6663 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. [536] %=20 [536] % cat small.c extern void d(int); int a[2][4], b; int main() { while (b) { int c; d(a[b][c]); for (c =3D 0; c < 7; c++) ; } return 0; }=