]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid PHI - PHI recurrence in vectorization
authorRichard Biener <rguenther@suse.de>
Thu, 20 Oct 2022 09:04:21 +0000 (11:04 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 20 Oct 2022 10:49:50 +0000 (12:49 +0200)
commit5362b5cc8dba9de70904613fff1d5391a9c087ce
tree7ff6ab63d0a747beb811208e228d7dc34b8643e8
parentc7ebee2378426eeca425ca5406af213a926f154c
Avoid PHI - PHI recurrence in vectorization

The reported regression of libgomp loop-14.C shows that there isn't
generally a good reliable place to insert the permute upfront so
the following simply restricts recurrence vectorization to the cases
where the latch value isn't defined by a PHI.

* tree-vect-loop.cc (vect_phi_first_order_recurrence_p):
Disallow latch PHI defs.
(vectorizable_recurr): Revert previous change.
gcc/tree-vect-loop.cc