[Bug tree-optimization/110571] vect_determine_partial_vectors_and_peeling required at vect_do_peeling time

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 26 14:20:47 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110571

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:b7942104794a754f9927916dfc8931d4bd515648

commit r16-5630-gb7942104794a754f9927916dfc8931d4bd515648
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Nov 26 13:54:12 2025 +0100

    tree-optimization/110571 - fix vect_need_peeling_or_partial_vectors_p

    The following avoids re-calling of vect_need_peeling_or_partial_vectors_p
    after peeling.  This was neccesary because the function does not
    properly handle being called for epilogues since it looks for the
    applied prologue peeling not in the main vector loop but the current
    one operated on.

            PR tree-optimization/110571
            * tree-vectorizer.h (vect_need_peeling_or_partial_vectors_p):
Remove.
            * tree-vect-loop.cc (vect_need_peeling_or_partial_vectors_p):
            Fix when called on epilog loops.  Make static.
            * tree-vect-loop-manip.cc (vect_do_peeling): Do not
            re-compute LOOP_VINFO_PEELING_FOR_NITER.


More information about the Gcc-bugs mailing list