projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test case for historical reasons
[libfirm]
/
ir
/
be
/
becopyheur4.c
diff --git
a/ir/be/becopyheur4.c
b/ir/be/becopyheur4.c
index
91243cc
..
e9d20a3
100644
(file)
--- a/
ir/be/becopyheur4.c
+++ b/
ir/be/becopyheur4.c
@@
-33,6
+33,8
@@
#include "config.h"
#endif /* HAVE_CONFIG_H */
#include "config.h"
#endif /* HAVE_CONFIG_H */
+#define DISABLE_STATEV
+
#include <float.h>
#include "array.h"
#include <float.h>
#include "array.h"
@@
-119,7
+121,7
@@
typedef struct _co_mst_env_t {
int k; /**< number of non-ignore registers in class */
bitset_t *ignore_regs; /**< set containing all global ignore registers */
ir_phase ph; /**< phase object holding data for nodes */
int k; /**< number of non-ignore registers in class */
bitset_t *ignore_regs; /**< set containing all global ignore registers */
ir_phase ph; /**< phase object holding data for nodes */
- pqueue
*chunks; /**< priority queue for chunks */
+ pqueue
_t
*chunks; /**< priority queue for chunks */
pset *chunkset; /**< set holding all chunks */
be_ifg_t *ifg; /**< the interference graph */
const arch_env_t *aenv; /**< the arch environment */
pset *chunkset; /**< set holding all chunks */
be_ifg_t *ifg; /**< the interference graph */
const arch_env_t *aenv; /**< the arch environment */
@@
-711,7
+713,7
@@
static void build_affinity_chunks(co_mst_env_t *env) {
static __attribute__((unused)) void chunk_order_nodes(co_mst_env_t *env, aff_chunk_t *chunk)
{
static __attribute__((unused)) void chunk_order_nodes(co_mst_env_t *env, aff_chunk_t *chunk)
{
- pqueue *grow = new_pqueue();
+ pqueue
_t
*grow = new_pqueue();
const ir_node *max_node = NULL;
int max_weight = 0;
int i;
const ir_node *max_node = NULL;
int max_weight = 0;
int i;
@@
-746,7
+748,7
@@
static __attribute__((unused)) void chunk_order_nodes(co_mst_env_t *env, aff_chu
bitset_remv_irn(visited, max_node);
i = 0;
while (!pqueue_empty(grow)) {
bitset_remv_irn(visited, max_node);
i = 0;
while (!pqueue_empty(grow)) {
- ir_node *irn = pqueue_
ge
t(grow);
+ ir_node *irn = pqueue_
pop_fron
t(grow);
affinity_node_t *an = get_affinity_info(env->co, irn);
neighb_t *neigh;
affinity_node_t *an = get_affinity_info(env->co, irn);
neighb_t *neigh;
@@
-1438,7
+1440,7
@@
int co_solve_heuristic_mst(copy_opt_t *co) {
/* color chunks as long as there are some */
while (! pqueue_empty(mst_env.chunks)) {
/* color chunks as long as there are some */
while (! pqueue_empty(mst_env.chunks)) {
- aff_chunk_t *chunk = pqueue_
ge
t(mst_env.chunks);
+ aff_chunk_t *chunk = pqueue_
pop_fron
t(mst_env.chunks);
color_aff_chunk(&mst_env, chunk);
DB((dbg, LEVEL_4, "<<<====== Coloring chunk (%u) done\n", chunk->id));
color_aff_chunk(&mst_env, chunk);
DB((dbg, LEVEL_4, "<<<====== Coloring chunk (%u) done\n", chunk->id));