https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103977

            Bug ID: 103977
           Summary: ice in try_vectorize_loop_1
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 52163
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52163&action=edit
gzipped C source code

The attached C code does this:

$ /home/dcb/gcc/results/bin/gcc  -c -w   -std=gnu89  -mno-sse -mno-mmx   -O3 
bug785.c
during GIMPLE pass: vect
mm/slab_common.c: In function ‘cache_random_seq_create’:
mm/slab_common.c:992:5: internal compiler error: in operator[], at vec.h:889
0x10367ab vect_analyze_loop(loop*, vec_info_shared*)
        ../../trunk.git/gcc/tree-vect-loop.c:0
0x1082487 try_vectorize_loop_1(hash_table<simduid_to_vf, false, xcallocator>*&,
unsigned int*, loop*, gimple*, gimple*, function*)
        ../../trunk.git/gcc/tree-vectorizer.c:1047
0x1082487 try_vectorize_loop(hash_table<simduid_to_vf, false, xcallocator>*&,
unsigned int*, loop*, function*)
        ../../trunk.git/gcc/tree-vectorizer.c:1162

Code derived from the Linux kernel.

I will have a go at reducing the code.

Reply via email to