tree-if-conv.c (add_to_predicate_list): Check unconditionally that bb is always execu...
authorYuri Rumyantsev <ysrumyan@gmail.com>
Mon, 10 Nov 2014 07:46:45 +0000 (07:46 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Mon, 10 Nov 2014 07:46:45 +0000 (07:46 +0000)
commitbf42631e52845de198d2205eb5773d0f37bfcf15
treec18e47a85076dc4c56d37b18abc1ca527b94adf2
parent6d1301f28c1830acfdffaef0d93e3741b095a31c
tree-if-conv.c (add_to_predicate_list): Check unconditionally that bb is always executed to early exit.

gcc/

* tree-if-conv.c (add_to_predicate_list): Check unconditionally
that bb is always executed to early exit. Use predicate of
cd-equivalent block for join blocks if it exists.
(if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
(tree_if_conversion): Free post-dominance information.

gcc/testsuite/

* gcc.dg/tree-ssa/ifc-cd.c: New test.

From-SVN: r217277
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ifc-cd.c [new file with mode: 0644]
gcc/tree-if-conv.c