Lines Matching refs:phi
37 static int simplify_phi_node(struct instruction *phi, pseudo_t tmp) in simplify_phi_node() argument
39 pseudo_t target = phi->target; in simplify_phi_node()
44 FOR_EACH_PTR(phi->phi_list, src) { in simplify_phi_node()
49 if (def->bb == phi->bb) in simplify_phi_node()
59 phi->bb = NULL; in simplify_phi_node()
63 static void replace_phi_node(struct instruction *phi) in replace_phi_node() argument
69 tmp->type = phi->target->type; in replace_phi_node()
70 tmp->ident = phi->target->ident; in replace_phi_node()
74 simplify_phi_node(phi, tmp); in replace_phi_node()
77 FOR_EACH_PTR(phi->phi_list, p) { in replace_phi_node()
106 if (!phi->bb) in replace_phi_node()
113 phi->opcode = OP_COPY; in replace_phi_node()
114 use_pseudo(phi, tmp, &phi->src); in replace_phi_node()