Message ID | 563p8171-436p-73rp-9p2s-po42o270794@fhfr.qr |
---|---|
State | New |
Headers | show |
Series | Use stablesort for sorting association chain | expand |
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index c4f8f38012f..6237a61ffd4 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -1865,7 +1865,7 @@ vect_build_slp_tree_2 (vec_info *vinfo, slp_tree node, /* Now we have a set of chains with the same length. */ /* 1. pre-sort according to def_type and operation. */ for (unsigned lane = 0; lane < group_size; ++lane) - chains[lane].sort (dt_sort_cmp, vinfo); + chains[lane].stablesort (dt_sort_cmp, vinfo); if (dump_enabled_p ()) { dump_printf_loc (MSG_NOTE, vect_location,