From d64f8dd280e6d2d70aec5b133e913b1af51832d9 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 30 Sep 2015 14:28:14 -0600 Subject: [PATCH] Improve DOM's optimization of control statements * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements with constant conditions. * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New. (remove_ctrl_stmt_and_useless_edges): No longer static. * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype. (remove_ctrl_stmt_and_useless_edges): Likewise. * gcc.dg/tree-ssa/ssa-dom-branch-1.c: New test. From-SVN: r228306 --- gcc/tree-ssa-threadupdate.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/tree-ssa-threadupdate.h') diff --git a/gcc/tree-ssa-threadupdate.h b/gcc/tree-ssa-threadupdate.h index 21a9ee3..30428e8 100644 --- a/gcc/tree-ssa-threadupdate.h +++ b/gcc/tree-ssa-threadupdate.h @@ -43,5 +43,7 @@ public: }; extern void register_jump_thread (vec *); +extern void remove_jump_threads_starting_at (basic_block); extern void delete_jump_thread_path (vec *); +extern void remove_ctrl_stmt_and_useless_edges (basic_block, basic_block); #endif -- cgit v1.1