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
1f3ce499
Commit
1f3ce499
authored
Nov 20, 2015
by
yb9976
Browse files
Create Conv instead of Bitcast for the same arithmetic.
This fixes opt/fehler310.c.
parent
7ae90851
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/opt/iropt.c
View file @
1f3ce499
...
...
@@ -6354,6 +6354,10 @@ again:
dbg_info
*
dbgi
=
get_irn_dbg_info
(
n
);
ir_node
*
block
=
get_nodes_block
(
n
);
ir_mode
*
mode
=
get_irn_mode
(
n
);
ir_mode
*
op_mode
=
get_irn_mode
(
new_op
);
if
(
get_mode_arithmetic
(
mode
)
==
get_mode_arithmetic
(
op_mode
))
{
return
new_rd_Conv
(
dbgi
,
block
,
new_op
,
mode
);
}
return
new_rd_Bitcast
(
dbgi
,
block
,
new_op
,
mode
);
}
return
n
;
...
...
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