summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestat.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2014-03-29 06:34:54 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2014-03-29 07:41:24 +0100
commit95de248b528145620de7c46e894f6513d8de2fc2 (patch)
tree9755eda6160373544cd3cc8c4c227b62b1db1b6e /ir/be/bestat.c
parent4b198ad81d1ed37f6bc55e0dab71c04bec49f8b9 (diff)
all: Use MAX.
Diffstat (limited to 'ir/be/bestat.c')
-rw-r--r--ir/be/bestat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/be/bestat.c b/ir/be/bestat.c
index 4868b31..46a9660 100644
--- a/ir/be/bestat.c
+++ b/ir/be/bestat.c
@@ -10,6 +10,7 @@
*/
#include <time.h>
+#include "../adt/util.h"
#include "irnode_t.h"
#include "irgwalk.h"
#include "irhooks.h"
@@ -58,7 +59,7 @@ static void check_reg_pressure_class(pressure_walker_env_t *env,
be_liveness_transfer(cls, irn, &live_nodes);
cnt = ir_nodeset_size(&live_nodes);
- max_live = cnt < max_live ? max_live : cnt;
+ max_live = MAX(max_live, cnt);
env->regpressure += cnt;
env->insn_count++;
}