11 #include "bephicongr_t.h"
12 #include "bephicoal_t.h"
14 pset *all_phi_nodes = NULL;
17 static void phi_node_walker(ir_node *node, void *env) {
18 if (is_Phi(node) && mode_is_datab(get_irn_mode(node)))
19 pset_insert_ptr(all_phi_nodes, node);
23 void be_phi_opt(ir_graph* irg) {
24 all_phi_nodes = pset_new_ptr(64);
25 irg_walk_graph(irg, phi_node_walker, NULL, NULL);
27 be_phi_congr_classes(all_phi_nodes);
28 be_phi_coalesce_locals(all_phi_classes);
32 void be_phi_opt_init(void) {
33 be_phi_congr_class_init();