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

            Bug ID: 126861
           Summary: internal compiler error: in vect_schedule_slp_node, at
                    tree-vect-slp.cc:12245
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: liuhongt at gcc dot gnu.org
  Target Milestone: ---

cat ice-min.cc

struct Guard { ~Guard(); };
void init();

int f (unsigned n1, unsigned n2)
{
  Guard g;
  init();
  return (n1 != 0) + (n2 != 0);
}


gcc -O3 -march=x86-64-v3 -S

ice-min.cc: In function ‘int f(unsigned int, unsigned int)’:
ice-min.cc:17:5: internal compiler error: in vect_schedule_slp_node, at
tree-vect-slp.cc:12245
   17 | int f (unsigned n1, unsigned n2)
      |     ^
0x330184b internal_error(char const*, ...)
        ~/gcc/diagnostic-global-context.cc:787
0xfbf556 fancy_abort(char const*, int, char const*)
        ~/gcc/diagnostics/context.cc:1813
0xaa04fe vect_schedule_slp_node
        ~/gcc/tree-vect-slp.cc:12245
0x1dcb4df vect_schedule_scc
        ~/gcc/tree-vect-slp.cc:12640
0x1dcbc29 vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr>&,
bool)
        ~/gcc/tree-vect-slp.cc:12796
0x1dccea1 vect_slp_analyze_bb_1
        ~/gcc/tree-vect-slp.cc:10404
0x1dccea1 vect_slp_region
        ~/gcc/tree-vect-slp.cc:10457
0x1dcf1eb vect_slp_bbs
        ~/gcc/tree-vect-slp.cc:10680
0x1dcf794 vect_slp_function(function*)
        ~/gcc/tree-vect-slp.cc:10802
0x1ddaf42 execute
        ~/gcc/tree-vectorizer.cc:1573

Reply via email to