make swap argument of vect_get_and_check_slp_defs readonly
authorRichard Biener <rguenther@suse.de>
Tue, 15 Sep 2020 14:12:53 +0000 (16:12 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 15 Sep 2020 14:59:09 +0000 (16:59 +0200)
commitd876184c095d6ac41e64eaf4e2c78864d2d935c1
treeb9495a64cd86e35fd68b745183f4c9f006bff90c
parent3304888c252f079a04ff2be95672d8c1d9a7d34f
make swap argument of vect_get_and_check_slp_defs readonly

Since some time we're only using this argument to communicate from
vect_build_slp_tree_1 to vect_get_and_check_slp_defs.  This makes
the direction of information flow clear.

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

* tree-vect-slp.c (vect_get_and_check_slp_defs): Make swap
argument by-value and do not change it.
(vect_build_slp_tree_2): Adjust, set swap to NULL after last
use.
gcc/tree-vect-slp.c