#include "irprintf_t.h"
#include "array.h"
#include "debug.h"
+#include "irtools.h"
#include "besched_t.h"
#include "beutil.h"
#include "bearch.h"
#include "bestat.h"
-#define MAX(x,y) ((x) > (y) ? (x) : (y))
-#define MIN(x,y) ((x) < (y) ? (x) : (y))
-
/**
* All scheduling info needed per node.
*/
#include "irhooks.h"
#include "dbginfo_t.h"
#include "firmstat_t.h"
+#include "irtools.h"
#include "bestat.h"
#include "belive_t.h"
#include "besched.h"
-#undef MIN
-#define MIN(a, b) (a < b ? a : b)
-
/**
* Collect reg pressure statistics per block and per class.
*/
max_live = cnt < max_live ? max_live : cnt;
}
- stat_be_block_regpressure(birg->irg, block, max_live, cls->name);
+ stat_be_block_regpressure(birg->irg, block, MIN(max_live, 5), cls->name);
}
}