[PATCH] Pass in avail_expr_stack and setup edge_infos earlier
authorJeff Law <law@redhat.com>
Thu, 17 Sep 2015 03:01:03 +0000 (21:01 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 17 Sep 2015 03:01:03 +0000 (21:01 -0600)
commite8ae63bb6ccbb7ec3dc5fbfbaf8236b71c59650e
treebeeb6ae89f5ced6e7def72c713e3e747502a1c12
parenta481f93b12d748610b2ebe947f8532765e4890d0
[PATCH] Pass in avail_expr_stack and setup edge_infos earlier

PR tree-optimization/47679
* tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
(free_all_edge_infos): Use it.
(allocate_edge_info): Free preexisting edge info data.
(pass_dominator::execute): Set up initial edge info structures.
(dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
thread_across_edge.
* tree-ssa-threadedge.c (thread_across_edge): Accept new argument.  If
non-null, then push/pop markers appropriately.
* tree-ssa-threadedge.h (thread_across_edge): Update prototype.
* tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
thread-across_edge.

From-SVN: r227842
gcc/ChangeLog
gcc/tree-ssa-dom.c
gcc/tree-ssa-threadedge.c
gcc/tree-ssa-threadedge.h
gcc/tree-vrp.c