tree-optimization/95309 - fix invariant SLP node costing
authorRichard Biener <rguenther@suse.de>
Mon, 25 May 2020 11:06:03 +0000 (13:06 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 25 May 2020 14:02:08 +0000 (16:02 +0200)
commitdc0c0196340f7ac58b10d0042d7cea776d6f7864
tree425e9163bd308810320d7aaa65f4d891524c2fea
parent431e762fae0faf10c6a115cd4e36d7c8867c5c17
tree-optimization/95309 - fix invariant SLP node costing

This makes sure to compute SLP_TREE_NUMBER_OF_VEC_STMTS during SLP
analysis even for invariant / external nodes so costing properly
knows what to cost.

2020-05-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/95309
* tree-vect-slp.c (vect_get_constant_vectors): Move number
of vector computation ...
(vect_slp_analyze_node_operations): ... to analysis phase.
gcc/ChangeLog
gcc/tree-vect-slp.c