projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed debug output of unary x87 nodes
[libfirm]
/
ir
/
be
/
becopyopt.c
diff --git
a/ir/be/becopyopt.c
b/ir/be/becopyopt.c
index
f10c5e7
..
316e31a
100644
(file)
--- a/
ir/be/becopyopt.c
+++ b/
ir/be/becopyopt.c
@@
-1229,7
+1229,7
@@
static void ifg_dump_node_attr(FILE *f, void *self, ir_node *irn)
}
else
}
else
- fprintf(f, "label=\"\"" );
+ fprintf(f, "label=\"\"
shape=point
" );
if(env->flags & CO_IFG_DUMP_SHAPE)
fprintf(f, "shape=%s ", limited ? "diamond" : "ellipse");
if(env->flags & CO_IFG_DUMP_SHAPE)
fprintf(f, "shape=%s ", limited ? "diamond" : "ellipse");
@@
-1331,6
+1331,7
@@
void co_driver(be_chordal_env_t *cenv)
{
copy_opt_t *co;
co_algo_t *algo_func;
{
copy_opt_t *co;
co_algo_t *algo_func;
+ int init_costs;
if(algo < 0 || algo >= CO_ALGO_LAST)
return;
if(algo < 0 || algo >= CO_ALGO_LAST)
return;
@@
-1338,11
+1339,7
@@
void co_driver(be_chordal_env_t *cenv)
co = new_copy_opt(cenv, cost_func);
co_build_ou_structure(co);
co_build_graph_structure(co);
co = new_copy_opt(cenv, cost_func);
co_build_ou_structure(co);
co_build_graph_structure(co);
- if(do_stats) {
- ir_printf("%30F %10s %10d%10d%10d%10d", cenv->irg, cenv->cls->name,
- co_get_max_copy_costs(co), co_get_copy_costs(co),
- co_get_inevit_copy_costs(co), co_get_lower_bound(co));
- }
+ init_costs = co_get_copy_costs(co);
/* Dump the interference graph in Appel's format. */
if(dump_flags & DUMP_APPEL) {
/* Dump the interference graph in Appel's format. */
if(dump_flags & DUMP_APPEL) {
@@
-1371,6
+1368,10
@@
void co_driver(be_chordal_env_t *cenv)
int remaining = co_get_copy_costs(co);
int evitable = remaining - co_get_lower_bound(co);
int remaining = co_get_copy_costs(co);
int evitable = remaining - co_get_lower_bound(co);
+ ir_printf("%30F %10s %10d%10d%10d%10d", cenv->irg, cenv->cls->name,
+ co_get_max_copy_costs(co), init_costs,
+ co_get_inevit_copy_costs(co), co_get_lower_bound(co));
+
if(optimizable_costs > 0)
printf("%10d %5.2f\n", remaining, (evitable * 100.0) / optimizable_costs);
else
if(optimizable_costs > 0)
printf("%10d %5.2f\n", remaining, (evitable * 100.0) / optimizable_costs);
else