[Bug target/99820] New: aarch64: ICE (segfault) in aarch64_analyze_loop_vinfo with -moverride=tune=use_new_vector_costs
acoplan at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 29 20:04:27 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99820
Bug ID: 99820
Summary: aarch64: ICE (segfault) in aarch64_analyze_loop_vinfo
with -moverride=tune=use_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 = 0; i < 100; i++)
a[i] = 0;
}
$ aarch64-linux-gnu-gcc -c test.c -march=armv8.2-a+sve -O -ftree-vectorize
-moverride=tune=use_new_vector_costs
during GIMPLE pass: vect
test.c: In function ‘f’:
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 <https://gcc.gnu.org/bugs/> for instructions.
More information about the Gcc-bugs
mailing list