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
033a7b6d
Commit
033a7b6d
authored
Mar 15, 2014
by
Christoph Mallon
Browse files
iropt: Use tarval_neg(x) instead of tarval_sub(get_mode_null(), x).
parent
dbc33326
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
033a7b6d
...
...
@@ -4585,7 +4585,7 @@ is_bittest: {
}
/* -a == c ==> a == -c, -a != c ==> a != -c */
else
if
(
is_Minus
(
left
))
{
ir_tarval
*
tv2
=
tarval_
sub
(
get_mode_null
(
mode
),
tv
,
NULL
);
ir_tarval
*
tv2
=
tarval_
neg
(
tv
);
if
(
tarval_is_constant
(
tv2
))
{
left
=
get_Minus_op
(
left
);
...
...
Write
Preview
Markdown
is supported
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