projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
renamed new_type_pointer_mode() into new_type_pointer()
[libfirm]
/
ir
/
opt
/
strength_red.c
diff --git
a/ir/opt/strength_red.c
b/ir/opt/strength_red.c
index
e27927b
..
565a9f4
100644
(file)
--- 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);
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 wi
ht
a constant . */
+ /* Compute if the induction variable is added or substracted wi
th
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);
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));
/* 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" search
e
s 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);
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 */
/* 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);
/* -- Search expressions that can be optimized -- */
irg_walk_graph(irg, NULL, reduce_itervar, NULL);