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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon May 13 11:37:21 2019
New Revision: 271125

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

        PR tree-optimization/90402
        * tree-if-conv.c (tree_if_conversion): Value number only
        the loop body by making the latch an exit of the region
        as well.
        * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
        processing PHIs.
        (do_rpo_vn): Deal with multiple edges into the entry block
        that are not backedges inside the region by skipping PHIs
        of the entry block.

        * gcc.dg/torture/pr90402-1.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr90402-1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-if-conv.c
    trunk/gcc/tree-ssa-sccvn.c

Reply via email to