projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
816aa2f
)
Fix transform_node_Cmp() (r20946): Transform Cmp(-a, -b) to Cmp(b, a), not Cmp(a...
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 6 Aug 2008 20:13:39 +0000
(20:13 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 6 Aug 2008 20:13:39 +0000
(20:13 +0000)
[r21022]
ir/ir/iropt.c
patch
|
blob
|
history
diff --git
a/ir/ir/iropt.c
b/ir/ir/iropt.c
index
ff1dcf3
..
efe954f
100644
(file)
--- a/
ir/ir/iropt.c
+++ b/
ir/ir/iropt.c
@@
-3117,10
+3117,10
@@
static ir_node *transform_node_Cmp(ir_node *n) {
if (is_Minus(left) && is_Minus(right) &&
!mode_overflow_on_unary_Minus(get_irn_mode(left))) {
-
left = get_Minus_op(lef
t);
-
right = get_Minus_op(righ
t);
+
ir_node *const new_left = get_Minus_op(righ
t);
+
ir_node *const new_right = get_Minus_op(lef
t);
n = new_rd_Cmp(get_irn_dbg_info(n), current_ir_graph,
- get_nodes_block(n),
left,
right);
+ get_nodes_block(n),
new_left, new_
right);
DBG_OPT_ALGSIM0(oldn, n, FS_OPT_CMP_OP_OP);
}
return n;