summaryrefslogtreecommitdiff
path: root/gcc/gimple-iterator.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-10 18:01:23 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-10 18:01:23 +0000
commit7c41b799c2f728a56aa2ce4a23b4e7dc57e0cd4a (patch)
tree1e26e005ab17ad875a7ffd828f74f03b4a8e883a /gcc/gimple-iterator.c
parent90b8bebdf8610b6d05181e3ad053268d0fa14b68 (diff)
downloadgcc-7c41b799c2f728a56aa2ce4a23b4e7dc57e0cd4a.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151602 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-iterator.c')
-rw-r--r--gcc/gimple-iterator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gimple-iterator.c b/gcc/gimple-iterator.c
index 666b47b47a8..47aed5ce4c9 100644
--- a/gcc/gimple-iterator.c
+++ b/gcc/gimple-iterator.c
@@ -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
the value set by the statement we want to insert on E. That
hardly seems worth the effort. */
-restart:
+ restart:
if (single_pred_p (dest)
- && ! phi_nodes (dest)
+ && gimple_seq_empty_p (phi_nodes (dest))
&& dest != EXIT_BLOCK_PTR)
{
*gsi = gsi_start_bb (dest);