aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-iterator.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2009-09-10 11:01:23 -0700
committerRichard Henderson <rth@gcc.gnu.org>2009-09-10 11:01:23 -0700
commit671f9f3098adb1a7c989da1ee5180e08fb9c0f5f (patch)
tree1e26e005ab17ad875a7ffd828f74f03b4a8e883a /gcc/gimple-iterator.c
parent15a15e8dc42b58e92b64924e8c15adceaff9a5ae (diff)
downloadgcc-671f9f3098adb1a7c989da1ee5180e08fb9c0f5f.zip
gcc-671f9f3098adb1a7c989da1ee5180e08fb9c0f5f.tar.gz
gcc-671f9f3098adb1a7c989da1ee5180e08fb9c0f5f.tar.bz2
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
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 666b47b..47aed5c 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);