projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not mark the transformed as visited. It makes no sense at all.
[libfirm]
/
ir
/
be
/
beschedrss.c
diff --git
a/ir/be/beschedrss.c
b/ir/be/beschedrss.c
index
8cc96d6
..
1e00876
100644
(file)
--- a/
ir/be/beschedrss.c
+++ b/
ir/be/beschedrss.c
@@
-50,6
+50,7
@@
#include "bipartite.h"
#include "hungarian.h"
#include "plist.h"
#include "bipartite.h"
#include "hungarian.h"
#include "plist.h"
+#include "array_t.h"
#include "height.h"
#include "height.h"
@@
-1567,7
+1568,7
@@
static ir_nodeset_t *compute_maximal_antichain(rss_t *rss, dvg_t *dvg, int itera
DBG((rss->dbg, LEVEL_3, "\t\t\t%3d -> %3d %3d -> %3d\n", i, assignment[i], i, assignment_rev[i]));
}
DBG((rss->dbg, LEVEL_3, "\t\t\t%3d -> %3d %3d -> %3d\n", i, assignment[i], i, assignment_rev[i]));
}
- values =
xmalloc(sizeof(values[0])
);
+ values =
XMALLOC(ir_nodeset_t
);
ir_nodeset_init_size(values, 10);
cur_chain = 0;
/* Construction of the minimal chain partition */
ir_nodeset_init_size(values, 10);
cur_chain = 0;
/* Construction of the minimal chain partition */
@@
-1645,7
+1646,7
@@
static ir_nodeset_t *compute_maximal_antichain(rss_t *rss, dvg_t *dvg, int itera
free(temp);
}
free(temp);
}
- temp =
xmalloc(sizeof(temp[0])
);
+ temp =
XMALLOC(ir_nodeset_t
);
ir_nodeset_init_size(temp, 10);
/* Select all nodes from current value set, having another node in the set as descendant. */
ir_nodeset_init_size(temp, 10);
/* Select all nodes from current value set, having another node in the set as descendant. */
@@
-2064,8
+2065,8
@@
static void process_block(ir_node *block, void *env) {
rss->max_height = heights_recompute_block(rss->h, block);
/* loop over all register classes */
rss->max_height = heights_recompute_block(rss->h, block);
/* loop over all register classes */
- for (i = arch_
isa_get_n_reg_class(rss->arch_env->isa
) - 1; i >= 0; --i) {
- const arch_register_class_t *cls = arch_
isa_get_reg_class(rss->arch_env->isa
, i);
+ for (i = arch_
env_get_n_reg_class(rss->arch_env
) - 1; i >= 0; --i) {
+ const arch_register_class_t *cls = arch_
env_get_reg_class(rss->arch_env
, i);
rss->cls = cls;
DBG((rss->dbg, LEVEL_1, "register class %s\n", arch_register_class_name(cls)));
rss->cls = cls;
DBG((rss->dbg, LEVEL_1, "register class %s\n", arch_register_class_name(cls)));