From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 65F173858D20; Sat, 18 May 2024 15:38:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 65F173858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716046707; bh=xaDy5MLlkkLnLqv05ijfwixsBkw0EOdKmAUUCLwzby8=; h=From:To:Subject:Date:From; b=L/Hx9JfEpjd5x3/YPFrR/bZxCdIrre3HeFt1qNS0Xa98/C2cF9jt4HTGDlmr6NjFk DLY8l3g7ffCj8xbc2tY+9i+UrYPwiEAnmUxEiZipWmo4Q0Ya1PkSZ7GpVvkq4I0/FU HhkWIKwAMtc+Q1t63zvhvZ1tmgbirX3Mrf7iZWl0= From: "zhendong.su at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/115149] New: ICE on valid code at -O3 with "-fno-inline -fno-tree-vrp -fno-ipa-sra -fno-tree-dce -fno-tree-ch" on x86_64-linux-gnu: verify_ssa failed Date: Sat, 18 May 2024 15:38:27 +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=3D115149 Bug ID: 115149 Summary: ICE on valid code at -O3 with "-fno-inline -fno-tree-vrp -fno-ipa-sra -fno-tree-dce -fno-tree-ch" on x86_64-linux-gnu: verify_ssa 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 as it doesn't reproduce with 14.1 and earlier. Compiler Explorer: https://godbolt.org/z/xGfY5vofe [729] % 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/15.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 15.0.0 20240516 (experimental) (GCC)=20 [730] %=20 [730] % gcctk -O3 -fno-inline -fno-tree-vrp -fno-ipa-sra -fno-tree-dce -fno-tree-ch small.c small.c: In function =E2=80=98main=E2=80=99: small.c:4:5: error: stmt with wrong VUSE 4 | int main() { | ^~~~ # VUSE <.MEM_16(D)> c_lsm.18_25 =3D c; expected .MEM_17 during GIMPLE pass: sink small.c:4:5: internal compiler error: verify_ssa failed 0x140abbe verify_ssa(bool, bool) ../../gcc-trunk/gcc/tree-ssa.cc:1203 0x102ded5 execute_function_todo ../../gcc-trunk/gcc/passes.cc:2096 0x102e73e execute_todo ../../gcc-trunk/gcc/passes.cc:2143 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. [731] %=20 [731] % cat small.c int a, c, e, f, g, h[1], i; static int j(int b) { return 0; } static void k(int d) {} int main() { if (h[0]) while (1) { k(f && j(i && (h[g] =3D e))); while (a) c ^=3D 1; } return 0; }=