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
a679562e
Commit
a679562e
authored
Sep 25, 2015
by
Christoph Mallon
Browse files
cleanup: Remove pointless assert(tarval_is_long(tv)).
The following get_tarval_long(tv) has the same assertion internally.
parent
41f211ad
Changes
2
Show whitespace changes
Inline
Side-by-side
ir/be/ia32/x86_address_mode.c
View file @
a679562e
...
...
@@ -288,7 +288,6 @@ tryit:
ir_mode
*
mode
=
get_irn_mode
(
and
);
ir_tarval
*
all_one
=
get_mode_all_one
(
mode
);
ir_tarval
*
shift_mask
=
tarval_shl
(
tarval_shr
(
all_one
,
shift_amount
),
shift_amount
);
assert
(
tarval_is_long
(
shift_amount
));
long
val
=
get_tarval_long
(
shift_amount
);
if
(
and_mask
==
shift_mask
&&
val
>=
0
&&
val
<=
3
)
{
...
...
ir/opt/iropt.c
View file @
a679562e
...
...
@@ -5265,7 +5265,6 @@ cmp_x_eq_0:
ir_tarval
*
c2
=
get_Const_tarval
(
lr
);
ir_tarval
*
c3
=
get_Const_tarval
(
right
);
assert
(
tarval_is_long
(
c1
));
ir_mode
*
mode
=
get_irn_mode
(
left
);
long
l1
=
get_tarval_long
(
c1
);
long
h2
=
get_tarval_highest_bit
(
c2
);
...
...
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