projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup irouts
[libfirm]
/
ir
/
opt
/
proc_cloning.c
diff --git
a/ir/opt/proc_cloning.c
b/ir/opt/proc_cloning.c
index
8424a99
..
8e13f5b
100644
(file)
--- a/
ir/opt/proc_cloning.c
+++ b/
ir/opt/proc_cloning.c
@@
-301,13
+301,12
@@
static void set_preds(ir_node *irn, void *env)
static ir_node *get_irg_arg(ir_graph *irg, size_t pos)
{
ir_node *irg_args = get_irg_args(irg), *arg = NULL;
static ir_node *get_irg_arg(ir_graph *irg, size_t pos)
{
ir_node *irg_args = get_irg_args(irg), *arg = NULL;
- int i;
/* Call algorithm that computes the out edges */
assure_irg_outs(irg);
/* Search the argument with the number pos.*/
/* Call algorithm that computes the out edges */
assure_irg_outs(irg);
/* Search the argument with the number pos.*/
- for (
i = get_irn_n_outs(irg_args) - 1; i >= 0; --i
) {
+ for (
unsigned i = get_irn_n_outs(irg_args); i-- > 0;
) {
ir_node *proj = get_irn_out(irg_args, i);
if ((int)pos == get_Proj_proj(proj)) {
if (arg) {
ir_node *proj = get_irn_out(irg_args, i);
if ((int)pos == get_Proj_proj(proj)) {
if (arg) {
@@
-612,7
+611,7
@@
void proc_cloning(float threshold)
/* We iterate the set and arrange the element of the set in a list.
The elements are arranged dependent of their value descending.*/
if (hmap.map) {
/* We iterate the set and arrange the element of the set in a list.
The elements are arranged dependent of their value descending.*/
if (hmap.map) {
- foreach_pset(hmap.map, entry_t
*
, entry) {
+ foreach_pset(hmap.map, entry_t, entry) {
entry->weight = calculate_weight(entry);
/*
entry->weight = calculate_weight(entry);
/*