move permute optimization to optimize-slp
authorRichard Biener <rguenther@suse.de>
Tue, 29 Sep 2020 10:01:26 +0000 (12:01 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 29 Sep 2020 12:44:04 +0000 (14:44 +0200)
commitb1570930df659ff3ea6691f9ba8b84c8a189d85d
tree8fdde8bfcb4742eadcd2acd95305572e86bbcc65
parentd68f4d2ecb8ed6781e4e535d2abc498b1674d68a
move permute optimization to optimize-slp

This moves optimizing permutes of SLP reductions to vect_optimize_slp,
eliding the global slp_loads array.

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

* tree-vect-slp.c (vect_analyze_slp): Move SLP reduction
re-arrangement and SLP graph load gathering...
(vect_optimize_slp): ... here.
* tree-vectorizer.h (vec_info::slp_loads): Remove.
gcc/tree-vect-slp.c
gcc/tree-vectorizer.h