Commit 671f9f30 by Richard Henderson Committed by Richard Henderson

gimple-iterator.c (gimple_find_edge_insert_loc): Use gimple_seq_empty_p to test for no PHI nodes.

* gimple-iterator.c (gimple_find_edge_insert_loc): Use
        gimple_seq_empty_p to test for no PHI nodes.
        * tree-cfg.c (split_critical_edges): Likewise.

From-SVN: r151602
parent 15a15e8d
2009-09-10 Richard Henderson <rth@redhat.com> 2009-09-10 Richard Henderson <rth@redhat.com>
* gimple-iterator.c (gimple_find_edge_insert_loc): Use
gimple_seq_empty_p to test for no PHI nodes.
* tree-cfg.c (split_critical_edges): Likewise.
2009-09-10 Richard Henderson <rth@redhat.com>
* c-common.h (c_dialect_cxx, c_dialect_objc): Boolify. * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com> 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
......
...@@ -623,9 +623,9 @@ gimple_find_edge_insert_loc (edge e, gimple_stmt_iterator *gsi, ...@@ -623,9 +623,9 @@ gimple_find_edge_insert_loc (edge e, gimple_stmt_iterator *gsi,
would have to examine the PHIs to prove that none of them used would have to examine the PHIs to prove that none of them used
the value set by the statement we want to insert on E. That the value set by the statement we want to insert on E. That
hardly seems worth the effort. */ hardly seems worth the effort. */
restart: restart:
if (single_pred_p (dest) if (single_pred_p (dest)
&& ! phi_nodes (dest) && gimple_seq_empty_p (phi_nodes (dest))
&& dest != EXIT_BLOCK_PTR) && dest != EXIT_BLOCK_PTR)
{ {
*gsi = gsi_start_bb (dest); *gsi = gsi_start_bb (dest);
......
...@@ -7250,7 +7250,7 @@ split_critical_edges (void) ...@@ -7250,7 +7250,7 @@ split_critical_edges (void)
Go ahead and split them too. This matches the logic in Go ahead and split them too. This matches the logic in
gimple_find_edge_insert_loc. */ gimple_find_edge_insert_loc. */
else if ((!single_pred_p (e->dest) else if ((!single_pred_p (e->dest)
|| phi_nodes (e->dest) || !gimple_seq_empty_p (phi_nodes (e->dest))
|| e->dest == EXIT_BLOCK_PTR) || e->dest == EXIT_BLOCK_PTR)
&& e->src != ENTRY_BLOCK_PTR && e->src != ENTRY_BLOCK_PTR
&& !(e->flags & EDGE_ABNORMAL)) && !(e->flags & EDGE_ABNORMAL))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment