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
50a8c9cc
Commit
50a8c9cc
authored
Dec 16, 2012
by
Christoph Mallon
Browse files
becopyilp: Remove the unused function co_ilp_get_costs().
parent
1d59167b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/becopyilp_t.h
View file @
50a8c9cc
...
...
@@ -39,29 +39,6 @@ static inline bool sr_is_removed(size_red_t const *const sr, ir_node const *cons
return
ir_nodeset_contains
(
&
sr
->
all_removed
,
irn
);
}
/**
* TODO: This search is necessary because during the construction of the
* units (ou's) args could be merged and weights are accumulated.
* Is this necessary?
*/
static
inline
int
co_ilp_get_costs
(
copy_opt_t
*
co
,
ir_node
*
root
,
ir_node
*
arg
)
{
int
i
;
/* search optimization unit for phi */
list_for_each_entry
(
unit_t
,
curr
,
&
co
->
units
,
units
)
if
(
curr
->
nodes
[
0
]
==
root
)
{
for
(
i
=
1
;
i
<
curr
->
node_count
;
++
i
)
if
(
curr
->
nodes
[
i
]
==
arg
)
return
curr
->
costs
[
i
];
assert
(
0
&&
"irn must occur in this ou"
);
}
assert
(
0
&&
"phi must be found in a ou"
);
return
0
;
}
/******************************************************************************
_____ _ _____ _ _____
/ ____| (_) |_ _| | | __ \
...
...
Write
Preview
Supports
Markdown
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