tree-optimization/110563 - simplify epilogue VF checks
commitdeebf06a1207bf7d84f4bebc462137d9436ee6dd
authorRichard Biener <rguenther@suse.de>
Thu, 6 Jul 2023 07:56:23 +0000 (6 09:56 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 6 Jul 2023 10:48:56 +0000 (6 12:48 +0200)
tree871aea9f74a7a2c5c8f16c0094bc07f94d671dbf
parent79a90e69ec9faf53ba84391f3c558e552711f6a6
tree-optimization/110563 - simplify epilogue VF checks

The following consolidates an assert that now hits for ppc64le
with an earlier check we already do, simplifying
vect_determine_partial_vectors_and_peeling and getting rid of
its now redundant argument.

PR tree-optimization/110563
* tree-vectorizer.h (vect_determine_partial_vectors_and_peeling):
Remove second argument.
* tree-vect-loop.cc (vect_determine_partial_vectors_and_peeling):
Remove for_epilogue_p argument.  Merge assert ...
(vect_analyze_loop_2): ... with check done before determining
partial vectors by moving it after.
* tree-vect-loop-manip.cc (vect_do_peeling): Adjust.
gcc/tree-vect-loop-manip.cc
gcc/tree-vect-loop.cc
gcc/tree-vectorizer.h