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
ae28bd99
Commit
ae28bd99
authored
Aug 31, 2015
by
yb9976
Browse files
Re-added code from libfirm
cbad497b
.
This allows to optimize conversion like Iu -> Lu -> F.
parent
0ccacd6c
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
ae28bd99
...
...
@@ -6289,8 +6289,11 @@ bool may_leave_out_middle_conv(ir_mode *m0, ir_mode *m1, ir_mode *m2)
{
int
n_floats
=
mode_is_float
(
m0
)
+
mode_is_float
(
m1
)
+
mode_is_float
(
m2
);
if
(
n_floats
==
1
)
{
/* because overflow gives strange results we don't touch this case */
int
n_signed
=
mode_is_signed
(
m0
)
+
mode_is_signed
(
m1
)
+
mode_is_signed
(
m2
);
/* we assume that float modes are always signed */
if
((
n_signed
&
1
)
!=
1
)
{
return
false
;
}
}
else
if
(
n_floats
==
2
&&
!
mode_is_float
(
m1
))
{
return
false
;
}
...
...
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