Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
ea49f59b
Commit
ea49f59b
authored
Dec 18, 2012
by
Christoph Mallon
Browse files
ia32: Remove the unnecessary special case to get the latency of a CopyB.
parent
5041b0dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/bearch_ia32.c
View file @
ea49f59b
...
...
@@ -307,10 +307,7 @@ static int ia32_get_op_estimated_cost(const ir_node *irn)
cost
=
get_ia32_latency
(
irn
);
op_tp
=
get_ia32_op_type
(
irn
);
if
(
is_ia32_CopyB
(
irn
))
{
cost
=
250
;
}
else
if
(
is_ia32_CopyB_i
(
irn
))
{
if
(
is_ia32_CopyB_i
(
irn
))
{
int
size
=
get_ia32_copyb_size
(
irn
);
cost
=
20
+
(
int
)
ceil
((
4
/
3
)
*
size
);
}
...
...
ir/be/ia32/ia32_spec.pl
View file @
ea49f59b
...
...
@@ -1664,7 +1664,7 @@ CopyB => {
outs
=>
[
"
dest
",
"
source
",
"
count
",
"
M
",
"
X_regular
",
"
X_except
"
],
attr_type
=>
"
ia32_copyb_attr_t
",
attr
=>
"
unsigned size
",
latency
=>
3
,
latency
=>
250
,
# we don't care about this flag, so no need to mark this node
# modified_flags => [ "DF" ]
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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