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
53fa28a8
Commit
53fa28a8
authored
Apr 18, 2006
by
Christian Würdig
Browse files
removed MIN/MAX macros (in irtools.h now)
parent
03df82c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/belistsched.c
View file @
53fa28a8
...
...
@@ -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.
*/
...
...
ir/be/bestat.c
View file @
53fa28a8
...
...
@@ -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
);
}
}
...
...
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