projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A comment for better understanding
[libfirm]
/
ir
/
ir
/
irprofile.c
diff --git
a/ir/ir/irprofile.c
b/ir/ir/irprofile.c
index
80b4285
..
6046ca9
100644
(file)
--- a/
ir/ir/irprofile.c
+++ b/
ir/ir/irprofile.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-20
08
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-20
11
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-63,9
+63,6
@@
typedef struct intialize_execfreq_env_t {
double freq_factor;
} initialize_execfreq_env_t;
double freq_factor;
} initialize_execfreq_env_t;
-/* maximal filename size */
-#define MAX_NAME_SIZE 0x100
-
/* minimal execution frequency (an execfreq of 0 confuses algos) */
#define MIN_EXECFREQ 0.00001
/* minimal execution frequency (an execfreq of 0 confuses algos) */
#define MIN_EXECFREQ 0.00001
@@
-73,7
+70,7
@@
typedef struct intialize_execfreq_env_t {
static set *profile = NULL;
/* Hook for vcg output. */
static set *profile = NULL;
/* Hook for vcg output. */
-DEBUG_ONLY(static void *hook;)
+static void *hook;
/* The debug module handle. */
DEBUG_ONLY(static firm_dbg_module_t *dbg;)
/* The debug module handle. */
DEBUG_ONLY(static firm_dbg_module_t *dbg;)
@@
-103,9
+100,9
@@
static int cmp_execcount(const void *a, const void *b, size_t size)
*/
static void block_counter(ir_node *bb, void *data)
{
*/
static void block_counter(ir_node *bb, void *data)
{
- (void) bb;
unsigned *count = (unsigned*) data;
unsigned *count = (unsigned*) data;
- (*count)++;
+ (void) bb;
+ ++(*count);
}
/**
}
/**