projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c5d3278
)
typo fixed
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 22 Oct 2004 13:50:47 +0000
(13:50 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 22 Oct 2004 13:50:47 +0000
(13:50 +0000)
[r4193]
ir/ir/iropt.c
patch
|
blob
|
history
diff --git
a/ir/ir/iropt.c
b/ir/ir/iropt.c
index
1b68f02
..
475f83f
100644
(file)
--- a/
ir/ir/iropt.c
+++ b/
ir/ir/iropt.c
@@
-1109,8
+1109,8
@@
optimize_preds(ir_node *n) {
} /* end switch */
}
} /* end switch */
}
-static ir_node *transform_node_Mul(ir_node *n)
-{
+/** Do architecture dependend optimizations on Mul nodes */
+
static ir_node *transform_node_Mul(ir_node *n)
{
return arch_dep_replace_mul_with_shifts(n);
}
return arch_dep_replace_mul_with_shifts(n);
}
@@
-1554,7
+1554,7
@@
static ir_node * transform_node_shift(ir_node *n)
return n;
tv2 = computed_value(get_binop_right(left));
return n;
tv2 = computed_value(get_binop_right(left));
- if (tv
1
== tarval_bad)
+ if (tv
2
== tarval_bad)
return n;
res = tarval_add(tv1, tv2);
return n;
res = tarval_add(tv1, tv2);