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
4bc817e9
Commit
4bc817e9
authored
Jul 11, 2014
by
yb9976
Browse files
IA-32: Do not create cltd in case of only one user.
Using a sarl instruction has lower register demand.
parent
feae70ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_transform.c
View file @
4bc817e9
...
...
@@ -1817,7 +1817,7 @@ static ir_node *gen_Shrs(ir_node *node)
if
(
is_Const
(
right
))
{
ir_tarval
*
tv
=
get_Const_tarval
(
right
);
long
val
=
get_tarval_long
(
tv
);
if
(
val
==
31
)
{
if
(
val
==
31
&&
get_irn_n_edges
(
left
)
>
1
)
{
/* this is a sign extension */
dbg_info
*
dbgi
=
get_irn_dbg_info
(
node
);
ir_node
*
block
=
be_transform_node
(
get_nodes_block
(
node
));
...
...
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