projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Comments, beautify
[libfirm]
/
ir
/
be
/
bemain.c
diff --git
a/ir/be/bemain.c
b/ir/be/bemain.c
index
7679c9d
..
4cc5396
100644
(file)
--- a/
ir/be/bemain.c
+++ b/
ir/be/bemain.c
@@
-14,6
+14,7
@@
#include "irprog.h"
#include "irgraph.h"
#include "irprog.h"
#include "irgraph.h"
+#include "irdump.h"
#include "be_t.h"
#include "bera_t.h"
#include "be_t.h"
#include "bera_t.h"
@@
-28,8
+29,10
@@
#include "bephiopt.h"
#include "phistat.h"
#include "bephiopt.h"
#include "phistat.h"
+#undef DUMP_ALLOCATED
+#undef DUMP_LOCALIZED
+
#define N_PHASES 256
#define N_PHASES 256
-#define DO_STATISTICS
typedef struct _be_graph_info_t {
bitset_t *applied_phases;
typedef struct _be_graph_info_t {
bitset_t *applied_phases;
@@
-98,7
+101,7
@@
void be_init(void)
be_numbering_init();
be_ra_init();
be_ra_chordal_init();
be_numbering_init();
be_ra_init();
be_ra_chordal_init();
- be_phi_
congr_class
_init();
+ be_phi_
opt
_init();
}
extern void be_ra_chordal(ir_graph *irg);
}
extern void be_ra_chordal(ir_graph *irg);
@@
-111,25
+114,26
@@
static void be_main_loop(void)
ir_graph *irg = get_irp_irg(i);
localize_consts(irg);
ir_graph *irg = get_irp_irg(i);
localize_consts(irg);
+#ifdef DUMP_LOCALIZED
+ dump_consts_local(0);
+ dump_ir_block_graph(irg, "-local-const");
+#endif
be_numbering(irg);
list_sched(irg, trivial_selector, NULL);
be_liveness(irg);
be_ra_chordal(irg);
be_numbering(irg);
list_sched(irg, trivial_selector, NULL);
be_liveness(irg);
be_ra_chordal(irg);
- be_phi_opt(irg);
- // dump_allocated_irg(irg);
+#ifdef DUMP_ALLOCATED
+ dump_allocated_irg(irg);
+#endif
+ //be_phi_opt(irg);
-#ifndef DO_STATISTICS
be_ra_chordal_done(irg);
be_numbering_done(irg);
be_ra_chordal_done(irg);
be_numbering_done(irg);
-#endif
}
}
void be_main(int argc, const char *argv[])
{
be_main_loop();
}
}
void be_main(int argc, const char *argv[])
{
be_main_loop();
-#ifdef DO_STATISTICS
- do_phi_statistics();
-#endif
}
}