Commit 934b9a7f authored by Christian Würdig's avatar Christian Würdig
Browse files

fixed be_sched_ready statistics

parent 519a8883
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
#include "belive_t.h" #include "belive_t.h"
#include "besched.h" #include "besched.h"
#undef MIN
#define MIN(a, b) (a < b ? a : b)
/** /**
* Collect reg pressure statistics per block and per class. * Collect reg pressure statistics per block and per class.
*/ */
...@@ -49,5 +52,5 @@ void be_do_stat_reg_pressure(be_irg_t *birg) { ...@@ -49,5 +52,5 @@ void be_do_stat_reg_pressure(be_irg_t *birg) {
* Notify statistic module about amount of ready nodes. * Notify statistic module about amount of ready nodes.
*/ */
void be_do_stat_sched_ready(ir_node *block, nodeset *ready_set) { void be_do_stat_sched_ready(ir_node *block, nodeset *ready_set) {
hook_be_block_sched_ready(block, get_irn_irg(block), nodeset_count(ready_set)); hook_be_block_sched_ready(block, get_irn_irg(block), MIN(nodeset_count(ready_set), 5));
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment