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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andre Simoes Dias Vieira
<avie...@gcc.gnu.org>:

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

commit r10-5997-gf7dff7699fd70d3b8c3e637818e18c86f93ccfec
Author: Andre Vieira <andre.simoesdiasvie...@arm.com>
Date:   Thu Jan 16 10:28:02 2020 +0000

    PR tree-optimization/92429 do not fold when updating epilogue statements

    This patch addresses the problem reported in PR92429.  When creating an
    epilogue for vectorization we have to replace the SSA_NAMEs in the
    PATTERN_DEF_SEQs and RELATED_STMTs of the epilogue's loop_vec_infos. When
doing
    this we were using simplify_replace_tree which always folds the
replacement.
    This may lead to a different tree-node than the one which was analyzed in
    vect_loop_analyze.  In turn the new tree-node may require a different
    vectorization than the one we had prepared for which caused the ICE in
    question.

    gcc/ChangeLog:
    2020-01-16  Andre Vieira  <andre.simoesdiasvie...@arm.com>

        PR tree-optimization/92429
        * tree-ssa-loop-niter.h (simplify_replace_tree): Add parameter.
        * tree-ssa-loop-niter.c (simplify_replace_tree): Add parameter to
        control folding.
        * tree-vect-loop.c (update_epilogue_vinfo): Do not fold when replacing
        tree.

    gcc/testsuite/ChangeLog:
    2020-01-16  Andre Vieira  <andre.simoesdiasvie...@arm.com>

        PR tree-optimization/92429
        * gcc.dg/vect/pr92429.c: New test.

Reply via email to