projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed warnings
[libfirm]
/
ir
/
be
/
beblocksched.c
diff --git
a/ir/be/beblocksched.c
b/ir/be/beblocksched.c
index
74187b7
..
ee4669a
100644
(file)
--- a/
ir/be/beblocksched.c
+++ b/
ir/be/beblocksched.c
@@
-82,7
+82,7
@@
static lc_opt_enum_int_var_t algo_var = {
static const lc_opt_table_entry_t be_blocksched_options[] = {
LC_OPT_ENT_ENUM_INT ("algo", "the block scheduling algorithm", &algo_var),
static const lc_opt_table_entry_t be_blocksched_options[] = {
LC_OPT_ENT_ENUM_INT ("algo", "the block scheduling algorithm", &algo_var),
- { NULL }
+ LC_OPT_LAST
};
/*
};
/*
@@
-104,7
+104,7
@@
typedef struct _edge_t {
ir_node *block; /**< source block */
int pos; /**< number of cfg predecessor (target) */
double execfreq; /**< the frequency */
ir_node *block; /**< source block */
int pos; /**< number of cfg predecessor (target) */
double execfreq; /**< the frequency */
- int highest_execfreq; /**< flag that indicates wether this edge is the edge with the highest
+ int highest_execfreq; /**< flag that indicates w
h
ether this edge is the edge with the highest
execfreq pointing away from this block */
} edge_t;
execfreq pointing away from this block */
} edge_t;
@@
-137,7
+137,7
@@
static void collect_egde_frequency(ir_node *block, void *data)
if (block == get_irg_start_block(env->irg))
return;
if (block == get_irg_start_block(env->irg))
return;
- arity = get_
irn_arity
(block);
+ arity = get_
Block_n_cfgpreds
(block);
if (arity == 1) {
edge.block = block;
if (arity == 1) {
edge.block = block;
@@
-362,6
+362,7
@@
static ir_node **create_blocksched_array(blocksched_env_t *env, blocksched_entry
int i = 0;
ir_node **block_list;
blocksched_entry_t *entry;
int i = 0;
ir_node **block_list;
blocksched_entry_t *entry;
+ (void) env;
block_list = NEW_ARR_D(ir_node *, obst, count);
DBG((dbg, LEVEL_1, "Blockschedule:\n"));
block_list = NEW_ARR_D(ir_node *, obst, count);
DBG((dbg, LEVEL_1, "Blockschedule:\n"));