From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5EF563858D29; Sat, 25 May 2024 13:44:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5EF563858D29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716644649; bh=n6B2jXcGe7ABzqAwTHdTfEdv8fde4iS/bclEXf1eo6g=; h=From:To:Subject:Date:From; b=RlmwxfOewFI09PZ3BY8mW4VfiN9OiPHC147R6wjpdfQI7Svujuut0WoKLFaaFT1UB 54Akn1XkGMt/jfRJtnkgh9MFpBwJhxDxb7OD5bXA4ElX6czkq0AeJc3PmH6XYtpGO2 OWlQ4BpB+hH/ALcSSVa4tDXpCIHTtWjdfQLUqgnM= From: "zhendong.su at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/115226] New: ICE on valid code at -O3 on x86_64-linux-gnu: verify_ssa failed Date: Sat, 25 May 2024 13:44:09 +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=3D115226 Bug ID: 115226 Summary: ICE on valid code at -O3 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: --- It appears to be a recent regression as it doesn't reproduce with 14.1 and earlier.=20 Compiler Explorer: https://godbolt.org/z/EK1hn9n4s [538] % 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 20240525 (experimental) (GCC)=20 [539] %=20 [539] % gcctk -O3 small.c=20 small.c: In function =E2=80=98main=E2=80=99: small.c:3:5: error: stmt with wrong VUSE 3 | int main() { | ^~~~ # .MEM_4 =3D VDEF <.MEM_15> a =3D 0; expected .MEM_2 during GIMPLE pass: unswitch small.c:3:5: internal compiler error: verify_ssa failed 0x140b2be verify_ssa(bool, bool) ../../gcc-trunk/gcc/tree-ssa.cc:1203 0x102deb5 execute_function_todo ../../gcc-trunk/gcc/passes.cc:2096 0x102e71e 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. [540] %=20 [540] % cat small.c extern void c(); int a, b; int main() { while (b) { int d, e =3D 0, *f =3D &a; *f =3D 1; e =3D 1 >> d ? : 1 << d; if (e) a =3D 0; c(); } return 0; }=