https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118269
Bug ID: 118269
Summary: ice in vect_create_epilog_for_reduction, at
tree-vect-loop.cc:6901
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
For this reduced C code:
cvise $ more bug1073.c
short g_113;
int func_1_l_1273, func_1_l_1370, func_1_l_1258;
void func_1() {
int l_1375;
for (; l_1375; l_1375--) {
for (; func_1_l_1370;)
;
func_1_l_1273 &= !0;
func_1_l_1273 &= g_113;
if (func_1_l_1258)
break;
}
}
cvise $
compiled with recent gcc trunk, does this:
cvise $ ~/gcc/results/bin/gcc -c -O3 bug1073.c
cvise $ ~/gcc/results/bin/gcc -c -O3 -march=znver3 bug1073.c
during GIMPLE pass: vect
bug1073.c: In function ‘func_1’:
bug1073.c:3:6: internal compiler error: in vect_create_epilog_for_reduction, at
tree-vect-loop.cc:6901
3 | void func_1() {
| ^~~~~~
cvise $ ~/gcc/results/bin/gcc -v 2>&1 | grep exp
gcc version 15.0.0 20241229 (experimental) (0b06abe027a78681)
cvise $
Going back as far as I can into the git history:
cvise $ ~/gcc/results.20241201.asan.ubsan/bin/gcc -c -O3 -march=znver3
bug1073.c
during GIMPLE pass: vect
bug1073.c: In function ‘func_1’:
bug1073.c:3:6: internal compiler error: in vect_create_epilog_for_reduction, at
tree-vect-loop.cc:6906
cvise $ ~/gcc/results.20241201.asan.ubsan/bin/gcc -v 2>&1 | grep exp
gcc version 15.0.0 20241201 (experimental) (e1009b3de2d05782)
cvise $
So the bug first appears sometime before git hash g:e1009b3de2d05782
Original source code available on request.