tree-optimization/103029 - ensure vect loop versioning constraint on PHIs
authorRichard Biener <rguenther@suse.de>
Tue, 2 Nov 2021 17:47:14 +0000 (18:47 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 2 Nov 2021 17:49:42 +0000 (18:49 +0100)
commit164bbf701ff10ff44e272525e8f462ed3ff1cf43
tree44863a3d09e9e8f5ea68165e9088a12a125d49e4
parentf19791565d7ed31c2a895fc29b772c2c7ed390e8
tree-optimization/103029 - ensure vect loop versioning constraint on PHIs

PHI nodes in vectorizer loop versioning need to maintain the same
order of PHI arguments to not disturb SLP discovery.  The following
adds an assertion and mitigation in case loop versioning breaks this
which happens more often after the recent reorg.

2021-11-02  Richard Biener  <rguenther@suse.de>

PR tree-optimization/103029
* tree-vect-loop-manip.c (vect_loop_versioning): Ensure
the PHI nodes in the loop maintain their original operand
order.
gcc/tree-vect-loop-manip.c