Move VF based dependence check
commitae156936cf4f15d9cc2b7d4e39f2e6b8fe22a9c3
authorRichard Biener <rguenther@suse.de>
Tue, 21 Nov 2023 08:50:54 +0000 (21 09:50 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 21 Nov 2023 14:31:56 +0000 (21 15:31 +0100)
tree09a865a5620bc852c66c01f522949b2173669930
parent1d82fc2e6824bf83159389729c31a942f7b91b04
Move VF based dependence check

The following moves the check whether the maximum vectorization
factor determined by data dependence analysis is in conflict with
the chosen vectorization factor to after the point where we applied
both the SLP and the unrolling adjustment to the vectorization
factor.  We check the latter before applying unrolling, but the
SLP adjustment can result in both missed optimization and wrong-code.

* tree-vect-loop.cc (vect_analyze_loop_2): Move check
of VF against max_vf until VF is final.
gcc/tree-vect-loop.cc