From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 86FD53858D3C; Tue, 18 Oct 2022 07:53:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 86FD53858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666079607; bh=TfcpL3SPWsVNERVuPT98WRPEgm4tMbhU3IMJF1q2zAk=; h=From:To:Subject:Date:From; b=aBBPVwtAK79FrrMzV8UXEk3r2Z5gt/b+ZgZSxKU73w3AsqJLQuZbYBKVjm7CFdnWi YdSPw0b0TaQoNwlWja6wQ2LTxSq2PeTmDt1kY1CwoQWAgmK9zEpO1+SDLEPPBTnGWi m7c3rrPcLBq/jIRYpJ8MTEWGI1mupbFOQa6ht9fk= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107302] New: [13 Regression] ICE in as_a, at is-a.h:242 since r13-3327-g46a8e017d048ec32 Date: Tue, 18 Oct 2022 07:53: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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org 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 keywords bug_severity priority component assigned_to reporter cc 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=3D107302 Bug ID: 107302 Summary: [13 Regression] ICE in as_a, at is-a.h:242 since r13-3327-g46a8e017d048ec32 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: rguenth at gcc dot gnu.org Target Milestone: --- The following crashes: $ cat tsvc.i int a[0]; int s292_im1; void s292() { for (int i =3D 0; i < 2000; i++) { a[i] =3D s292_im1; s292_im1 =3D i; } } $ gcc tsvc.i -fno-tree-pre -O2 during GIMPLE pass: vect tsvc.i: In function =E2=80=98s292=E2=80=99: tsvc.i:5:1: internal compiler error: in as_a, at is-a.h:242 5 | s292() { | ^~~~ 0x7fa8a6 gimple_statement_with_memory_ops* as_a(gimple*) /home/marxin/Programming/gcc/gcc/is-a.h:242 0x7fde52 gphi* as_a(gimple*) /home/marxin/Programming/gcc/gcc/gimple-iterator.h:129 0x7fde52 gphi_iterator::phi() const /home/marxin/Programming/gcc/gcc/gimple-iterator.h:43 0x7fde52 vect_transform_loop(_loop_vec_info*, gimple*) /home/marxin/Programming/gcc/gcc/tree-vect-loop.cc:10894 0x124f32e vect_transform_loops /home/marxin/Programming/gcc/gcc/tree-vectorizer.cc:1007 0x124f90f try_vectorize_loop_1 /home/marxin/Programming/gcc/gcc/tree-vectorizer.cc:1153 0x124f90f try_vectorize_loop /home/marxin/Programming/gcc/gcc/tree-vectorizer.cc:1183 0x124fca4 execute /home/marxin/Programming/gcc/gcc/tree-vectorizer.cc:1299 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.=