fix useless unsharing of SLP tree
authorRichard Biener <rguenther@suse.de>
Wed, 9 Sep 2020 11:58:45 +0000 (13:58 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 9 Sep 2020 12:46:14 +0000 (14:46 +0200)
commit58905f90434ba9a64abac56324131d67c53910ae
treed91d7048933759cdac0ecf59ccb39bf37fc53c42
parent505590b796df18ec3fcdcd6b8060f6f1410660b2
fix useless unsharing of SLP tree

This avoids unsharing the SLP tree when optimizing load permutations
for reductions but there is no actual permute taking place.

2020-09-09  Richard Biener  <rguenther@suse.de>

* tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Do
nothing when the permutation doesn't permute.
gcc/tree-vect-slp.c