Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
e969b6c6
Commit
e969b6c6
authored
Jun 04, 2016
by
Christoph Mallon
Browse files
Fix typo: It is about right identities, not left ones.
parent
a4d3cd5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/iropt.c
View file @
e969b6c6
...
...
@@ -1127,10 +1127,10 @@ static ir_node *equivalent_node_Add(ir_node *n)
}
/**
* optimize operations that are not commutative but have neutral 0
on left
,
* optimize operations that are not commutative but have
right
neutral 0,
* so a op 0 = a.
*/
static
ir_node
*
equivalent_node_
lef
t_zero
(
ir_node
*
n
)
static
ir_node
*
equivalent_node_
righ
t_zero
(
ir_node
*
n
)
{
ir_node
*
oldn
=
n
;
ir_node
*
b
=
get_binop_right
(
n
);
...
...
@@ -7690,9 +7690,9 @@ void ir_register_opt_node_ops(void)
set_op_equivalent_node
(
op_Phi
,
equivalent_node_Phi
);
set_op_equivalent_node
(
op_Pin
,
equivalent_node_Pin
);
set_op_equivalent_node
(
op_Proj
,
equivalent_node_Proj
);
set_op_equivalent_node
(
op_Shl
,
equivalent_node_
lef
t_zero
);
set_op_equivalent_node
(
op_Shr
,
equivalent_node_
lef
t_zero
);
set_op_equivalent_node
(
op_Shrs
,
equivalent_node_
lef
t_zero
);
set_op_equivalent_node
(
op_Shl
,
equivalent_node_
righ
t_zero
);
set_op_equivalent_node
(
op_Shr
,
equivalent_node_
righ
t_zero
);
set_op_equivalent_node
(
op_Shrs
,
equivalent_node_
righ
t_zero
);
set_op_equivalent_node
(
op_Sub
,
equivalent_node_Sub
);
set_op_equivalent_node
(
op_Sync
,
equivalent_node_Sync
);
set_op_equivalent_node_proj
(
op_Div
,
equivalent_node_Proj_Div
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment