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

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

https://gcc.gnu.org/g:81c833b311b16cfd87a947374d5ffbbd48facd03

commit r10-6838-g81c833b311b16cfd87a947374d5ffbbd48facd03
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Feb 25 10:31:16 2020 +0100

    tree-optimization/93868 copy SLP tree before re-arranging stmts

    This avoids altering possibly shared SLP subtrees when attempting
    to get rid of permutations in SLP reductions by copying the SLP
    subtree before re-arranging stmts in it.

    2020-02-25  Richard Biener  <rguent...@suse.de>

        PR tree-optimization/93868
        * tree-vect-slp.c (slp_copy_subtree): New function.
        (vect_attempt_slp_rearrange_stmts): Copy the SLP tree before
        re-arranging stmts in it.

        * gcc.dg/torture/pr93868.c: New testcase.

Reply via email to