Bug ID: 93247
           Summary: [10 Regression] ICE in get_load_store_type, at
                    tree-vect-stmts.c:2462 since g:ac190fcea1bebf87
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot
          Reporter: marxin at gcc dot
                CC: rsandifo at gcc dot
  Target Milestone: ---

Starting from the revision I see the following:

$ cat vect.i
typedef struct {
  unsigned num;
} VEC_tree_base;

enum {

struct lto_tree_ref_encoder {
  VEC_tree_base *trees;
} typedef *lto_out_decl_state_ptr;

typedef struct {
  lto_out_decl_state_ptr vec[1];
} VEC_lto_out_decl_state_ptr_base;

VEC_lto_out_decl_state_ptr_base *a;
int f;
long g;
fn1(struct lto_tree_ref_encoder *p1) {
  int i;
  long b;
  i = 0;
  for (; i < LTO_N_DECL_STREAMS; i++) {
    struct lto_tree_ref_encoder c = *p1;
    int d;
    VEC_tree_base *e = c.trees;
    d = e ? e->num : 0;
    b += d;
  return b;
fn2() {
  lto_out_decl_state_ptr h;
  struct lto_tree_ref_encoder j;
  unsigned k;
  for (; k < f; k++) {
    h = a->vec[k];
    j = *h;
    g += fn1(&j);

$ gcc vect.i -O3 -march=skylake
during GIMPLE pass: vect
vect.i: In function ‘fn2’:
vect.i:37:1: internal compiler error: in get_load_store_type, at
   37 | fn2() {
      | ^~~
0x732231 get_load_store_type
0x104a5d5 vectorizable_load
0x105ba2e vect_transform_stmt(_stmt_vec_info*, gimple_stmt_iterator*,
_slp_tree*, _slp_instance*)
0x105e94e vect_transform_loop_stmt
0x1075874 vect_transform_loop(_loop_vec_info*)
0x1091e2e try_vectorize_loop_1
0x1091f42 try_vectorize_loop_1
0x1092989 vectorize_loops()
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <> for instructions.

Reply via email to