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);
/* 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);
/* 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);