Use stablesort for sorting association chain
authorRichard Biener <rguenther@suse.de>
Fri, 11 Jun 2021 06:04:41 +0000 (08:04 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 11 Jun 2021 07:29:35 +0000 (09:29 +0200)
commite9d322ced1433da8e7c69243cfa941ea462d6290
tree5e707e0c0a5c9801fbff482847fac2db8cc4d593
parent367f52dcc24045b072aeb26bc301a2980b39241f
Use stablesort for sorting association chain

This should preserve the original association order as much as possible
for the initial SLP discovery attempt and also improve consistency.

2021-06-11  Richard Biener  <rguenther@suse.de>

* tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
to sort operands of the associative chain.
gcc/tree-vect-slp.c