]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/96028 - fix bogus externalizing of SLP node
authorRichard Biener <rguenther@suse.de>
Thu, 2 Jul 2020 09:45:06 +0000 (11:45 +0200)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:15:55 +0000 (13:15 -0300)
commit3a016ee4f208c0f8c864879f2e217302f092b5a9
treeba7e5ebac23e4357ad44b7085c39d8c169c3edc3
parent4868431f49cd23bd812af66f5a3e10c384e3e58f
tree-optimization/96028 - fix bogus externalizing of SLP node

This guards externalizing a SLP node when it fails to code generate
to actually have scalar defs we can use.  It also makes failure
to do so not fell the whole SLP instance but instead try this again
on the parent.

2020-07-02  Richard Biener  <rguenther@suse.de>

PR tree-optimization/96028
* tree-vect-slp.c (vect_slp_convert_to_external): Make sure
we have scalar stmts to use.
(vect_slp_analyze_node_operations): When analyzing a child
failed try externalizing the parent node.
gcc/tree-vect-slp.c