Commit 341e4e67 authored by Michael Beck's avatar Michael Beck
Browse files

- improced param weight calculation

- indentation changed

[r19122]
parent 73793f5a
......@@ -57,7 +57,7 @@ void analyze_irg_args(ir_graph *irg);
*
* The values are calculation on demand only.
*/
float get_method_param_weight(ir_entity *ent, int pos);
unsigned get_method_param_weight(ir_entity *ent, int pos);
/**
* Analyze the parameters of a given ir graph.
......
This diff is collapsed.
......@@ -53,9 +53,6 @@
#include "array.h"
#include "xmalloc.h"
/* A macro to iterate sets.*/
#define ITERATE_SET(set_entries, entry) for(entry = set_first(set_entries); entry; entry = set_next(set_entries))
/**
* This struct contains the information quadruple for a Call, which we need to
* decide if this function must be cloned.
......@@ -509,7 +506,7 @@ static void exchange_calls(quadruple_t *q, ir_entity *cloned_ent) {
*/
static float calculate_weight(const entry_t *entry) {
return ARR_LEN(entry->q.calls) *
(get_method_param_weight(entry->q.ent, entry->q.pos) + 1);
(float)(get_method_param_weight(entry->q.ent, entry->q.pos) + 1);
}
/**
......
Supports Markdown
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