The function phi_defines() does the liveness tracking of phi-pseudos (pseudos in OP_PHIs args). While doing this, the function is recursively called when the pseudo would be defined by another phi-node; but this condition is impossible because all phi-pseudos are defined by OP_PHISOURCE instructions. This patch remove the recursive call and its associated test. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- liveness.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/liveness.c b/liveness.c index eeff0f79..fb696720 100644 --- a/liveness.c +++ b/liveness.c @@ -23,10 +23,6 @@ static void phi_defines(struct instruction * phi_node, pseudo_t target, def = phi->def; if (!def || !def->bb) continue; - if (def->opcode == OP_PHI) { - phi_defines(def, target, defines); - continue; - } defines(def->bb, phi->def, target); } END_FOR_EACH_PTR(phi); } -- 2.10.2 -- 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