From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B936D386103A; Mon, 29 Mar 2021 20:04:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B936D386103A From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99820] New: aarch64: ICE (segfault) in aarch64_analyze_loop_vinfo with -moverride=tune=use_new_vector_costs Date: Mon, 29 Mar 2021 20:04:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: acoplan 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 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2021 20:04:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99820 Bug ID: 99820 Summary: aarch64: ICE (segfault) in aarch64_analyze_loop_vinfo with -moverride=3Dtune=3Duse_new_vector_costs Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following fails: $ cat test.c extern short a[]; void f() { for (int i =3D 0; i < 100; i++) a[i] =3D 0; } $ aarch64-linux-gnu-gcc -c test.c -march=3Darmv8.2-a+sve -O -ftree-vectorize -moverride=3Dtune=3Duse_new_vector_costs during GIMPLE pass: vect test.c: In function =E2=80=98f=E2=80=99: test.c:2:6: internal compiler error: Segmentation fault 2 | void f() { | ^ 0xdf6c93 crash_signal /home/alecop01/toolchain/src/gcc/gcc/toplev.c:327 0x1252b9b aarch64_analyze_loop_vinfo /home/alecop01/toolchain/src/gcc/gcc/config/aarch64/aarch64.c:14463 0x1252b9b aarch64_add_stmt_cost /home/alecop01/toolchain/src/gcc/gcc/config/aarch64/aarch64.c:15292 0x111fdd3 add_stmt_cost /home/alecop01/toolchain/src/gcc/gcc/tree-vectorizer.h:1477 0x111fdd3 vect_compute_single_scalar_iteration_cost /home/alecop01/toolchain/src/gcc/gcc/tree-vect-loop.c:1292 0x111fdd3 vect_analyze_loop_2 /home/alecop01/toolchain/src/gcc/gcc/tree-vect-loop.c:2311 0x1122169 vect_analyze_loop(loop*, vec_info_shared*) /home/alecop01/toolchain/src/gcc/gcc/tree-vect-loop.c:2985 0x115847b try_vectorize_loop_1 /home/alecop01/toolchain/src/gcc/gcc/tree-vectorizer.c:1009 0x11589b3 try_vectorize_loop /home/alecop01/toolchain/src/gcc/gcc/tree-vectorizer.c:1162 0x1158cf9 vectorize_loops() /home/alecop01/toolchain/src/gcc/gcc/tree-vectorizer.c:1243 0xfd74cb execute /home/alecop01/toolchain/src/gcc/gcc/tree-ssa-loop.c:414 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=