Don't split non-critical edges in crited
authorVladislav Ivanishin <vlad@ispras.ru>
Tue, 21 May 2019 10:45:32 +0000 (10:45 +0000)
committerVladislav Ivanishin <vlad@gcc.gnu.org>
Tue, 21 May 2019 10:45:32 +0000 (10:45 +0000)
commitd8bbf1d94ce6e95650ce3f163086b20ec586f537
tree5cbdd8f8878d9314e0908c6e1b0cc24c9933ac06
parent0f8e84c609c67456965b20e1274e7dca3db9ab05
Don't split non-critical edges in crited

gcc/ChangeLog:

        * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
parameter with default value false to declaration.
        (split_edges_for_insertion): New inline function.  Wrapper for
split_critical_edges with for_edge_insertion_p = true.
        * tree-cfg.c (split_critical_edges): Don't split non-critical
edges if for_edge_insertion_p is false.  Fix whitespace.
        * tree-ssa-pre.c (pass_pre::execute): Call
split_edges_for_insertion instead of split_critical_edges.
        * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
        * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
(pass_data_sink_code): Update function name in the comment.

From-SVN: r271461
gcc/ChangeLog
gcc/tree-cfg.c
gcc/tree-cfg.h
gcc/tree-ssa-pre.c
gcc/tree-ssa-sink.c
gcc/tree-ssa-tail-merge.c