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

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

https://gcc.gnu.org/g:8ebedfcd86aa5e3fc902fb442ce12c9d440c23c8

commit r11-4773-g8ebedfcd86aa5e3fc902fb442ce12c9d440c23c8
Author: Richard Biener <rguent...@suse.de>
Date:   Fri Nov 6 09:35:27 2020 +0100

    tree-optimization/97732 - fix init of SLP induction vectorization

    This PR exposes two issues - one that the vector builder treats
    &x as eligible for VECTOR_CST elements and one that SLP induction
    vectorization forgets to convert init elements to the vector
    component type which makes a difference for pointer vs. integer.

    2020-11-06  Richard Biener  <rguent...@suse.de>

            PR tree-optimization/97732
            * tree-vect-loop.c (vectorizable_induction): Convert the
            init elements to the vector component type.
            * gimple-fold.c (gimple_build_vector): Use CONSTANT_CLASS_P
            rather than TREE_CONSTANT to determine if elements are
            eligible for VECTOR_CSTs.

            * gcc.dg/vect/bb-slp-pr97732.c: New testcase.
  • [Bug tree-optimization/97732] [... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to