-#define is_Const(n) (get_irn_opcode(n) == iro_Const)
-
-
-/**
- * Insert a node to the phi class of a phi node
- * @param class The phi congruence class
- * @param phi The phi node holding the class
- * @param arg Node which gets assigned to the class
- */
-static INLINE void phi_class_insert(pset *class, ir_node *phi, ir_node *member) {
- DBG((dbgphi, 1, "\tinsert %n in %n\n", member, phi));
- if (!(is_Const(member) && CONSTS_SPLIT_PHI_CLASSES))
- _set_phi(member, phi);
- pset_insert_ptr(class, member);
-}
-
-/**
- * Unites two 'phi classes' repesented by two phi nodes.
- * @param n Phi node representing phi class to reassign
- * @param new_tgt Phi node, which will hold the new bigger phi class
- */
-static void phi_class_union(ir_node *n, ir_node *new_tgt) {
- ir_node *p;
- pset *src, *tgt;
-
- assert(is_Phi(n) && is_Phi(new_tgt) && "These must be phi nodes.");
- DBG((dbgphi, 1, "\tcorrect %n\n", n));
-
- /* copy all class members from n to new_tgt. Duplicates eliminated by pset */
- src = _get_phi_class(n);
- tgt = _get_phi_class(new_tgt);
- for (p = (ir_node *)pset_first(src); p; p = (ir_node *)pset_next(src))
- phi_class_insert(tgt, new_tgt, p);
-
- /* phi class of n is no longer needed */
- del_pset(src);
- _set_phi_class(n, NULL);
-}
-
-/**
- * Determines the phi congruence class of a phi node.
- * This will assign a phi class to all operands of this
- * phi node. Exceptions may be const nodes: See CONSTS_SPLIT_PHI_CLASSES
- */
-static void phi_class_det(ir_node *curr_phi) {
- pset *pc;
- int i, n;
- assert(is_Phi(curr_phi) && "This must be a phi node.");
- DBG((dbgphi, 1, "Det. phi class of %n.\n", curr_phi));