projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- removed strange add_irn_dep(get_irg_end(cg->irg), res)
[libfirm]
/
ir
/
be
/
bechordal_main.c
diff --git
a/ir/be/bechordal_main.c
b/ir/be/bechordal_main.c
index
1e6e6ba
..
05611be
100644
(file)
--- a/
ir/be/bechordal_main.c
+++ b/
ir/be/bechordal_main.c
@@
-207,7
+207,7
@@
static void memory_operand_walker(ir_node *irn, void *env)
/**
* Starts a walk for memory operands if supported by the backend.
*/
/**
* Starts a walk for memory operands if supported by the backend.
*/
-static
INLINE
void check_for_memory_operands(ir_graph *irg)
+static
inline
void check_for_memory_operands(ir_graph *irg)
{
irg_walk_graph(irg, NULL, memory_operand_walker, NULL);
}
{
irg_walk_graph(irg, NULL, memory_operand_walker, NULL);
}
@@
-270,9
+270,9
@@
static void post_spill(post_spill_env_t *pse, int iteration) {
}
BE_TIMER_POP(t_ra_spill_apply);
}
BE_TIMER_POP(t_ra_spill_apply);
- BE_TIMER_PUSH(t_verify);
/* verify schedule and register pressure */
/* verify schedule and register pressure */
+ BE_TIMER_PUSH(t_verify);
if (chordal_env->opts->vrfy_option == BE_CH_VRFY_WARN) {
be_verify_schedule(birg);
be_verify_register_pressure(birg, pse->cls, irg);
if (chordal_env->opts->vrfy_option == BE_CH_VRFY_WARN) {
be_verify_schedule(birg);
be_verify_register_pressure(birg, pse->cls, irg);
@@
-429,7
+429,7
@@
static void be_ra_chordal_main(be_irg_t *birg)
/* the backend has its own spiller */
m = arch_env_get_n_reg_class(arch_env);
/* the backend has its own spiller */
m = arch_env_get_n_reg_class(arch_env);
- pse =
alloca(m * sizeof(pse[0])
);
+ pse =
ALLOCAN(post_spill_env_t, m
);
for (j = 0; j < m; ++j) {
memcpy(&pse[j].cenv, &chordal_env, sizeof(chordal_env));
for (j = 0; j < m; ++j) {
memcpy(&pse[j].cenv, &chordal_env, sizeof(chordal_env));
@@
-448,7
+448,12
@@
static void be_ra_chordal_main(be_irg_t *birg)
}
BE_TIMER_PUSH(t_verify);
}
BE_TIMER_PUSH(t_verify);
- be_verify_register_allocation(birg);
+ if (chordal_env.opts->vrfy_option == BE_CH_VRFY_WARN) {
+ be_verify_register_allocation(birg);
+ } else if(chordal_env.opts->vrfy_option == BE_CH_VRFY_ASSERT) {
+ assert(be_verify_register_allocation(birg)
+ && "Register allocation invalid");
+ }
BE_TIMER_POP(t_verify);
BE_TIMER_PUSH(t_ra_epilog);
BE_TIMER_POP(t_verify);
BE_TIMER_PUSH(t_ra_epilog);