Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
21be21bc
Commit
21be21bc
authored
Apr 10, 2006
by
Michael Beck
Browse files
bestat is only compiled if FIRMSTAT is defined
parent
cd4ab968
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/bestat.c
View file @
21be21bc
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef FIRM_STATISTICS
#include "irnode_t.h"
#include "irprintf.h"
#include "irgwalk.h"
...
...
@@ -54,3 +60,10 @@ void be_do_stat_reg_pressure(be_irg_t *birg) {
void
be_do_stat_sched_ready
(
ir_node
*
block
,
nodeset
*
ready_set
)
{
hook_be_block_sched_ready
(
block
,
get_irn_irg
(
block
),
MIN
(
nodeset_count
(
ready_set
),
5
));
}
#else
void
(
be_do_stat_reg_pressure
)(
be_irg_t
*
birg
)
{}
void
(
be_do_stat_sched_ready
)(
ir_node
*
block
,
nodeset
*
ready_set
)
{}
#endif
/* FIRM_STATISTICS */
ir/be/bestat.h
View file @
21be21bc
#ifndef _BESTAT_H_
#define _BESTAT_H_
#include "firm_config.h"
#include "be_t.h"
#include "benodesets.h"
#ifdef FIRM_STATISTICS
/**
* Collects statistics information about register pressure.
* @param birg The be irg object containing the irg
...
...
@@ -11,10 +14,17 @@
void
be_do_stat_reg_pressure
(
be_irg_t
*
birg
);
/**
* Collect statistics about amount of redy nodes per block
* Collect statistics about amount of re
a
dy nodes per block
* @param block The block
* @param ready_set A set of ready nodes
*/
void
be_do_stat_sched_ready
(
ir_node
*
block
,
nodeset
*
ready_set
);
#else
#define be_do_stat_reg_pressure(birg)
#define be_do_stat_sched_ready(block, ready_set)
#endif
/* FIRM_STATISTICS */
#endif
/* _BESTAT_H_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment