Commit ea49f59b authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ia32: Remove the unnecessary special case to get the latency of a CopyB.

parent 5041b0dd
......@@ -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);
}
......
......@@ -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" ]
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment