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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Jul  4 13:55:15 2019
New Revision: 273082

URL: https://gcc.gnu.org/viewcvs?rev=273082&root=gcc&view=rev
Log:
2019-07-04  Richard Biener  <rguent...@suse.de>

        PR tree-optimization/90911
        * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
        (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
        * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
        scalar_loop_scaling.
        (vect_transform_loop): Scale scalar loop profile if needed.
        * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
        the loop copy from if-conversion adjust edge probabilities
        and scale the vectorized loop body profile, queue the scalar
        profile for updating after peeling.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-vect-loop-manip.c
    trunk/gcc/tree-vect-loop.c
    trunk/gcc/tree-vectorizer.h

Reply via email to