Commit 53fa28a8 authored by Christian Würdig's avatar Christian Würdig
Browse files

removed MIN/MAX macros (in irtools.h now)

parent 03df82c8
......@@ -28,6 +28,7 @@
#include "irprintf_t.h"
#include "array.h"
#include "debug.h"
#include "irtools.h"
#include "besched_t.h"
#include "beutil.h"
......@@ -37,9 +38,6 @@
#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.
*/
......
......@@ -15,14 +15,12 @@
#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.
*/
......@@ -49,7 +47,7 @@ static void stat_reg_pressure_block(ir_node *block, void *env) {
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);
}
}
......
Markdown is supported
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