--- mem2reg.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/mem2reg.c b/mem2reg.c index 4ba0f3408..ecda6675f 100644 --- a/mem2reg.c +++ b/mem2reg.c @@ -46,17 +46,6 @@ complex_phi: insn->phi_list = dominators; } -static int phisrc_in_bb(struct pseudo_list *list, struct basic_block *bb) -{ - pseudo_t p; - FOR_EACH_PTR(list, p) { - if (p->def->bb == bb) - return 1; - } END_FOR_EACH_PTR(p); - - return 0; -} - /* * sym - the symbol/var we're looking the value for * insn - a load of 'sym' @@ -106,8 +95,6 @@ no_dominance: continue; found_dominator: - if (dominators && phisrc_in_bb(*dominators, parent)) - continue; br = delete_last_instruction(&parent->insns); phi = alloc_phi(parent, one->target, one->type); phi->ident = phi->ident ? : pseudo->ident; -- 2.14.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html