[Bug c++/106841] New: ice in vect_get_vec_defs_for_operand, at tree-vect-stmts.cc:1509

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Mon Sep 5 19:14:44 GMT 2022


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

            Bug ID: 106841
           Summary: ice in vect_get_vec_defs_for_operand, at
                    tree-vect-stmts.cc:1509
           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 53540
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53540&action=edit
gzipped C++ source code

The attached C++ code does this:

during GIMPLE pass: vect
msh3.cpp: In member function 'virtual AnyType Square_Op::operator()(Stack)
const':
msh3.cpp:8044:9: internal compiler error: in vect_get_vec_defs_for_operand, at
tree-vect-stmts.cc:1509
 8044 | AnyType Square_Op::operator( )(Stack stack) const {
      |         ^~~~~~~~~
0x20af236 vect_get_vec_defs_for_operand(vec_info*, _stmt_vec_info*, unsigned
int, tree_node*, vec<tree_node*, va_heap, vl_ptr>*, tree_node*)
    ../../trunk.git/gcc/tree-vect-stmts.cc:1509
0x20cf508 vect_get_gather_scatter_ops(_loop_vec_info*, loop*, _stmt_vec_info*,
_slp_tree*, gather_scatter_info*, tree_node**, vec<tree_node*, va_heap,
vl_ptr>*)
    ../../trunk.git/gcc/tree-vect-stmts.cc:3066
0x20bab42 vectorizable_load(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*,
gimple**, _slp_tree*, vec<stmt_info_for_cost, va_heap, vl_ptr>*)
    ../../trunk.git/gcc/tree-vect-stmts.cc:9627

when compiled with -c -w -O3 -ffast-math -march=bdver2.

I will have a go at producing a git range.


More information about the Gcc-bugs mailing list