https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116791
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Full backtrace for r15-3741-gee3efe06c9c49c : apinski@xeond:~/src/upstream-gcc/gcc/objdir/gcc$ ./cc1 ../../../t.i -quiet -O2 -mavx2 during GIMPLE pass: vect ../mesa-9999/src/gallium/frontends/nine/nine_ff.c: In function ‘nine_ff_update’: ../mesa-9999/src/gallium/frontends/nine/nine_ff.c:2073:1: internal compiler error: in operator[], at vec.h:910 0x259abce internal_error(char const*, ...) /home/apinski/src/upstream-gcc/gcc/gcc/diagnostic-global-context.cc:517 0x9d5e87 fancy_abort(char const*, int, char const*) /home/apinski/src/upstream-gcc/gcc/gcc/diagnostic.cc:1657 0x8e72c0 vec<edge_def*, va_gc, vl_embed>::operator[](unsigned int) /home/apinski/src/upstream-gcc/gcc/gcc/vec.h:910 0x8e7dea vec<tree_node*, va_heap, vl_embed>::operator[](unsigned int) /home/apinski/src/upstream-gcc/gcc/gcc/tree.h:3788 0x8e7dea vec<tree_node*, va_heap, vl_ptr>::operator[](unsigned int) const /home/apinski/src/upstream-gcc/gcc/gcc/vec.h:1590 0x8e7dea vect_transform_slp_perm_load_1 /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-slp.cc:9943 0x1445338 vect_transform_slp_perm_load(vec_info*, _slp_tree*, vec<tree_node*, va_heap, vl_ptr> const&, gimple_stmt_iterator*, poly_int<1u, unsigned long>, bool, unsigned int*, unsigned int*, bool) /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-slp.cc:10051 0x13ef3dd vectorizable_load /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-stmts.cc:10524 0x13faa37 vect_transform_stmt(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*) /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-stmts.cc:13515 0x1448688 vect_schedule_slp_node /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-slp.cc:10683 0x1460d1e vect_schedule_slp_node /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-slp.cc:10470 0x1460d1e vect_schedule_scc /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-slp.cc:10921 0x1460ca3 vect_schedule_scc /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-slp.cc:10902 0x1460ca3 vect_schedule_scc /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-slp.cc:10902 0x1460ca3 vect_schedule_scc /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-slp.cc:10902 0x1460ca3 vect_schedule_scc /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-slp.cc:10902 0x1460ca3 vect_schedule_scc /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-slp.cc:10902 0x1460ca3 vect_schedule_scc /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-slp.cc:10902 0x1460ca3 vect_schedule_scc /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-slp.cc:10902 0x146132c vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr> const&) /home/apinski/src/upstream-gcc/gcc/gcc/tree-vect-slp.cc:11066 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.