X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fstrength_red.c;h=565a9f4649ad9b4b40d3b1300cde2b1ddcc082fd;hb=f1a1a6092d9e4ebd9e22dd1c57d76ef8aeda74fc;hp=e27927b1f30dda304506134b2998f7c76fea4b05;hpb=a724e745a061472ae1d83dc8d548675ca4079787;p=libfirm diff --git a/ir/opt/strength_red.c b/ir/opt/strength_red.c index e27927b1f..565a9f464 100644 --- a/ir/opt/strength_red.c +++ b/ir/opt/strength_red.c @@ -110,7 +110,7 @@ induct_var_info *is_induction_variable (induct_var_info *info) { ir_node *pred = get_Phi_pred(info->itervar_phi, i); ir_op *op = get_irn_op(pred); - /* Compute if the induction variable is added or substracted wiht a constant . */ + /* Compute if the induction variable is added or substracted with a constant . */ if (op == op_Add || op == op_Sub) { ir_node *n_l = get_binop_left(pred); ir_node *n_r = get_binop_right(pred); @@ -165,7 +165,7 @@ induct_var_info *is_induction_variable (induct_var_info *info) { /* Information about loop of itervar_phi. */ info->l_itervar_phi = get_irn_loop(get_nodes_block(info->itervar_phi)); - /* This "for" searchs for the Cmp successor of the + /* This "for" searches for the Cmp successor of the iter_var to reduce and marks if the iter_var have a Store successor or a successor out of loop.*/ info->phi_pred = get_irn_n_outs(info->itervar_phi); @@ -573,7 +573,7 @@ void reduce_strength(ir_graph *irg) { /* Call algorithm that computes the dominator trees. */ compute_doms(irg); /* Call algorithm that computes the out edges */ - compute_outs(irg); + compute_irg_outs(irg); /* -- Search expressions that can be optimized -- */ irg_walk_graph(irg, NULL, reduce_itervar, NULL);