projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e56b6aa
)
reduced by one call
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 24 Sep 2004 11:05:00 +0000
(11:05 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 24 Sep 2004 11:05:00 +0000
(11:05 +0000)
[r3930]
ir/ir/iropt.c
patch
|
blob
|
history
diff --git
a/ir/ir/iropt.c
b/ir/ir/iropt.c
index
d46d6a1
..
2d222b5
100644
(file)
--- a/
ir/ir/iropt.c
+++ b/
ir/ir/iropt.c
@@
-692,10
+692,11
@@
static ir_node *equivalent_node_left_zero(ir_node *n)
static ir_node *equivalent_node_symmetric_unop(ir_node *n)
{
ir_node *oldn = n;
+ ir_node *pred = get_unop_op(n);
/* optimize symmetric unop */
- if (get_irn_op(
get_unop_op(n)
) == get_irn_op(n)) {
- n = get_unop_op(
get_unop_op(n));
DBG_OPT_ALGSIM2;
+ if (get_irn_op(
pred
) == get_irn_op(n)) {
+ n = get_unop_op(
pred);
DBG_OPT_ALGSIM2;
}
return n;
}