+/**
+ * Check whether the node has only one user. Explicitly ignore the anchor.
+ */
+static int has_only_one_user(ir_node *node)
+{
+ int n = get_irn_n_edges(node);
+ const ir_edge_t *edge;
+
+ if (n <= 1)
+ return 1;
+
+ if (n > 2)
+ return 0;
+
+ foreach_out_edge(node, edge) {
+ ir_node *src = get_edge_src_irn(edge);
+ if (is_Anchor(src))
+ return 1;
+ }
+
+ return 0;
+}
+