Fixup reduction info on addsub SLP pattern
authorRichard Biener <rguenther@suse.de>
Fri, 25 Jun 2021 06:54:14 +0000 (08:54 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 25 Jun 2021 08:18:56 +0000 (10:18 +0200)
commit05516402f8eb8ec282a13fa1e38d9f9c5b3dd3e5
treee2d54778795c2386bbed23042190b5bd1b8b3bc5
parentc6c7ac0499c722ad03259013d6dc50e585a71860
Fixup reduction info on addsub SLP pattern

gcc.dg/vect/pr96854.c shows we need to copy over reduction info
to the SLP pattern as already done for the complex patterns.

2021-06-25  Richard Biener  <rguenther@suse.de>

* tree-vect-slp-patterns.c (addsub_pattern::build): Copy
STMT_VINFO_REDUC_DEF from the original representative.
gcc/tree-vect-slp-patterns.c