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

--- Comment #41 from Yvan Roux <yroux at gcc dot gnu.org> ---
Author: yroux
Date: Wed Jan 14 10:22:48 2015
New Revision: 219584

URL: https://gcc.gnu.org/viewcvs?rev=219584&root=gcc&view=rev
Log:
gcc/
2015-01-14  Yvan Roux  <yvan.r...@linaro.org>

    Backport from trunk r218451.
    2014-12-06  James Greenhalgh  <james.greenha...@arm.com>
            Sebastian Pop  <s....@samsung.com>
            Brian Rzycki  <b.rzy...@samsung.com>

    PR tree-optimization/54742
    * params.def (max-fsm-thread-path-insns, max-fsm-thread-length,
    max-fsm-thread-paths): New.

    * doc/invoke.texi (max-fsm-thread-path-insns, max-fsm-thread-length,
    max-fsm-thread-paths): Documented.

    * tree-cfg.c (split_edge_bb_loc): Export.
    * tree-cfg.h (split_edge_bb_loc): Declared extern.

    * tree-ssa-threadedge.c (simplify_control_stmt_condition): Restore the
    original value of cond when simplification fails.
    (fsm_find_thread_path): New.
    (fsm_find_control_statement_thread_paths): New.
    (thread_through_normal_block): Call find_control_statement_thread_paths.

    * tree-ssa-threadupdate.c (dump_jump_thread_path): Pretty print
    EDGE_FSM_THREAD.
    (verify_seme): New.
    (duplicate_seme_region): New.
    (thread_through_all_blocks): Generate code for EDGE_FSM_THREAD edges
    calling duplicate_seme_region.

    * tree-ssa-threadupdate.h (jump_thread_edge_type): Add EDGE_FSM_THREAD.

gcc/testsuite/
2015-01-14  Yvan Roux  <yvan.r...@linaro.org>

    Backport from trunk r218451.
    2014-12-06  James Greenhalgh  <james.greenha...@arm.com>
            Sebastian Pop  <s....@samsung.com>
            Brian Rzycki  <b.rzy...@samsung.com>

    PR tree-optimization/54742
    * gcc.dg/tree-ssa/ssa-dom-thread-6.c: New test.
    * gcc.dg/tree-ssa/ssa-dom-thread-7.c: New test.


Added:
   
branches/linaro/gcc-4_9-branch/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-6.c
   
branches/linaro/gcc-4_9-branch/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-7.c
Modified:
    branches/linaro/gcc-4_9-branch/gcc/ChangeLog.linaro
    branches/linaro/gcc-4_9-branch/gcc/doc/invoke.texi
    branches/linaro/gcc-4_9-branch/gcc/params.def
    branches/linaro/gcc-4_9-branch/gcc/testsuite/ChangeLog.linaro
    branches/linaro/gcc-4_9-branch/gcc/tree-cfg.c
    branches/linaro/gcc-4_9-branch/gcc/tree-cfg.h
    branches/linaro/gcc-4_9-branch/gcc/tree-ssa-threadedge.c
    branches/linaro/gcc-4_9-branch/gcc/tree-ssa-threadupdate.c
    branches/linaro/gcc-4_9-branch/gcc/tree-ssa-threadupdate.h

Reply via email to