tree-vect-loop.c (vectorizable_reduction): Remember reduction PHI.
authorRichard Biener <rguenther@suse.de>
Wed, 6 Nov 2019 12:56:42 +0000 (12:56 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 6 Nov 2019 12:56:42 +0000 (12:56 +0000)
commit06af1f1a0def9de076ec629ea634122f15882ce6
tree47df5ecea24585e9d73d35d74e455947967a1696
parentfeba3d8838118d3c41b8e25f13beaa6a15b38302
tree-vect-loop.c (vectorizable_reduction): Remember reduction PHI.

2019-11-06  Richard Biener  <rguenther@suse.de>

* tree-vect-loop.c (vectorizable_reduction): Remember reduction
PHI.  Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
Simplify single_defuse_cycle condition.

From-SVN: r277882
gcc/ChangeLog
gcc/tree-vect-loop.c