projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use SPARC_STACK_ALIGNMENT and round_up2() instead of magic numbers and calculations.
[libfirm]
/
ir
/
be
/
bechordal_common.c
diff --git
a/ir/be/bechordal_common.c
b/ir/be/bechordal_common.c
index
a72e7c5
..
74f48c7
100644
(file)
--- a/
ir/be/bechordal_common.c
+++ b/
ir/be/bechordal_common.c
@@
-78,17
+78,17
@@
static inline border_t *border_add(be_chordal_env_t *env, struct list_head *head
*/
set_irn_link(irn, def);
*/
set_irn_link(irn, def);
- DEBUG_ONLY(b->magic = BORDER_FOURCC
);
- DEBUG_ONLY(def->magic = BORDER_FOURCC
);
+ DEBUG_ONLY(b->magic = BORDER_FOURCC
;)
+ DEBUG_ONLY(def->magic = BORDER_FOURCC
;)
} else {
/*
* If the def is encountered, the use was made and so was the
* the def node (see the code above). It was placed into the
* link field of the irn, so we can get it there.
*/
} else {
/*
* If the def is encountered, the use was made and so was the
* the def node (see the code above). It was placed into the
* link field of the irn, so we can get it there.
*/
- b = get_irn_link(irn);
+ b =
(border_t*)
get_irn_link(irn);
- DEBUG_ONLY(assert(b && b->magic == BORDER_FOURCC && "Illegal border encountered")
);
+ DEBUG_ONLY(assert(b && b->magic == BORDER_FOURCC && "Illegal border encountered")
;)
}
b->pressure = pressure;
}
b->pressure = pressure;
@@
-113,13
+113,13
@@
void create_borders(ir_node *block, void *env_ptr)
#define border_use(irn, step, real) \
border_add(env, head, irn, step, ++pressure, 0, real)
#define border_use(irn, step, real) \
border_add(env, head, irn, step, ++pressure, 0, real)
- be_chordal_env_t *env = env_ptr;
+ be_chordal_env_t *env =
(be_chordal_env_t*)
env_ptr;
bitset_t *live = bitset_malloc(get_irg_last_idx(env->irg));
ir_node *irn;
be_lv_t *lv = be_get_irg_liveness(env->irg);
int i, n;
bitset_t *live = bitset_malloc(get_irg_last_idx(env->irg));
ir_node *irn;
be_lv_t *lv = be_get_irg_liveness(env->irg);
int i, n;
-
unsigned
elm;
+
size_t
elm;
unsigned step = 0;
unsigned pressure = 0;
struct list_head *head;
unsigned step = 0;
unsigned pressure = 0;
struct list_head *head;
@@
-222,9
+222,9
@@
be_insn_t *chordal_scan_insn(be_chordal_env_t *env, ir_node *irn)
{
be_insn_env_t ie;
{
be_insn_env_t ie;
- ie.
ignore_colors = env->ignore_color
s;
- ie.obst = env->obst;
- ie.cls = env->cls;
+ ie.
allocatable_regs = env->allocatable_reg
s;
+ ie.obst
= env->obst;
+ ie.cls
= env->cls;
return be_scan_insn(&ie, irn);
}
return be_scan_insn(&ie, irn);
}
@@
-293,7
+293,7
@@
ir_node *pre_process_constraints(be_chordal_env_t *env, be_insn_t **the_insn)
return perm;
}
return perm;
}
-BE_REGISTER_MODULE_CONSTRUCTOR(be_init_chordal_common)
;
+BE_REGISTER_MODULE_CONSTRUCTOR(be_init_chordal_common)
void be_init_chordal_common(void)
{
FIRM_DBG_REGISTER(dbg, "firm.be.chordal_common");
void be_init_chordal_common(void)
{
FIRM_DBG_REGISTER(dbg, "firm.be.chordal_common");