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

            Bug ID: 127811
           Summary: ICE in vect_schedule_slp_node
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoyo at gcc dot gnu.org
  Target Milestone: ---

Created attachment 65798
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65798&action=edit
Reproducer for the bug

Hi.
The attached reproducer gives the following ICE when compiled with "gcc main.c
-S -O2 -fexceptions":

during GIMPLE pass: slp
main.c: In function ‘f’:
main.c:7:1: internal compiler error: in vect_schedule_slp_node, at
tree-vect-slp.cc:12378
    7 | f (void)
      | ^
0x2cde123 internal_error(char const*, ...)
        ../../../gcc/gcc/diagnostic-global-context.cc:787
0xada345 fancy_abort(char const*, int, char const*)
        ../../../gcc/gcc/diagnostics/context.cc:1813
0x937e1d vect_schedule_slp_node
        ../../../gcc/gcc/tree-vect-slp.cc:12378
0x1728260 vect_schedule_scc
        ../../../gcc/gcc/tree-vect-slp.cc:12778
0x1728972 vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr>&,
bool)
        ../../../gcc/gcc/tree-vect-slp.cc:12947
0x172af81 vect_slp_region
        ../../../gcc/gcc/tree-vect-slp.cc:10681
0x172af81 vect_slp_bbs
        ../../../gcc/gcc/tree-vect-slp.cc:10792
0x172d930 vect_slp_function(function*)
        ../../../gcc/gcc/tree-vect-slp.cc:10871
0x173b235 execute
        ../../../gcc/gcc/tree-vectorizer.cc:1573
/home/user/path/upstream-gcc/gcc-build/install/bin/../libexec/gcc/x86_64-pc-linux-gnu/17.0.0/cc1
-quiet -iprefix
/home/user/path/upstream-gcc/gcc-build/install/bin/../lib/gcc/x86_64-pc-linux-gnu/17.0.0/
main.c -quiet -dumpbase main.c -dumpbase-ext .c -mtune=generic -march=x86-64
-O2 -fexceptions -o main.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

I got this on x86-64.
This is on commit bd261b39dedc064209a14be95ffb456f5cd01c1d.
This ICE only happens with a GCC configured --enable-checking=yes.
Thanks.

Reply via email to