Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
91e35fbe
Commit
91e35fbe
authored
Jun 13, 2014
by
yb9976
Browse files
Fixed comment.
parent
587b62c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
91e35fbe
...
...
@@ -3665,7 +3665,7 @@ static ir_node *transform_node_Mod(ir_node *n)
ir_tarval
*
const
divo
=
tarval_div
(
bao
,
tv
);
if
(
divz
==
divo
&&
tarval_is_constant
(
divz
))
{
/* a/b
is
constant, so use equation a % b = a - a/b */
/* a/b
and b are
constant, so use equation a % b = a -
(
a/b
)*b
*/
ir_tarval
*
tv_mul
=
tarval_mul
(
divz
,
tv
);
dbg_info
*
dbgi
=
get_irn_dbg_info
(
n
);
ir_node
*
c
=
new_rd_Const
(
dbgi
,
irg
,
tv_mul
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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