tree-optimization/103864 - SLP reduction of reductions with conversions
authorRichard Biener <rguenther@suse.de>
Tue, 4 Jan 2022 09:12:47 +0000 (10:12 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 4 Jan 2022 09:16:28 +0000 (10:16 +0100)
commit1a15451da14410bf2bd6ec8f5baba1014638c67a
tree0724eed0f643230c2bfae5abad60a2564abe7d15
parent801b2c880c8079934ac186ea1c31f3bf4af5aef3
tree-optimization/103864 - SLP reduction of reductions with conversions

This generalizes the fix for PR103544 to also cover reductions that
are not reduction chains and does not consider reductions wrapped in
sign conversions for SLP reduction handling.

2022-01-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/103864
PR tree-optimization/103544
* tree-vect-slp.c (vect_analyze_slp_instance): Exclude
reductions wrapped in conversions from SLP handling.
(vect_analyze_slp): Revert PR103544 change.

* gcc.dg/vect/pr103864.c: New testcase.
gcc/testsuite/gcc.dg/vect/pr103864.c [new file with mode: 0644]
gcc/tree-vect-slp.c