projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dumping the -am graph. It is exactly the same as the -opt graph.
[libfirm]
/
ir
/
be
/
beschednormal.c
diff --git
a/ir/be/beschednormal.c
b/ir/be/beschednormal.c
index
f630a7d
..
6b83ee5
100644
(file)
--- a/
ir/be/beschednormal.c
+++ b/
ir/be/beschednormal.c
@@
-22,9
+22,7
@@
* @author Christoph Mallon
* @version $Id$
*/
* @author Christoph Mallon
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config.h"
-#endif
#include <stdlib.h>
#include <stdlib.h>
@@
-49,9
+47,6
@@
static int must_be_scheduled(const ir_node* const irn)
}
}
-static const arch_env_t *cur_arch_env;
-
-
static ir_node *normal_select(void *block_env, ir_nodeset_t *ready_set,
ir_nodeset_t *live_set)
{
static ir_node *normal_select(void *block_env, ir_nodeset_t *ready_set,
ir_nodeset_t *live_set)
{
@@
-116,7
+111,7
@@
static int count_result(const ir_node* irn)
return
mode != mode_M &&
mode != mode_X &&
return
mode != mode_M &&
mode != mode_X &&
- !arch_irn_is(
cur_arch_env,
irn, ignore);
+ !arch_irn_is(irn, ignore);
}
}
@@
-164,7
+159,7
@@
static int normal_tree_cost(ir_node* irn)
cost = normal_tree_cost(pred);
if (be_is_Barrier(pred)) cost = 1; // XXX hack: the barrier causes all users to have a reguse of #regs
cost = normal_tree_cost(pred);
if (be_is_Barrier(pred)) cost = 1; // XXX hack: the barrier causes all users to have a reguse of #regs
- if (!arch_irn_is(
cur_arch_env,
pred, ignore)) {
+ if (!arch_irn_is(pred, ignore)) {
real_pred = (is_Proj(pred) ? get_Proj_pred(pred) : pred);
pred_fc = get_irn_link(real_pred);
pred_fc->no_root = 1;
real_pred = (is_Proj(pred) ? get_Proj_pred(pred) : pred);
pred_fc = get_irn_link(real_pred);
pred_fc->no_root = 1;
@@
-186,9
+181,9
@@
static int normal_tree_cost(ir_node* irn)
last = 0;
for (i = 0; i < arity; ++i) {
ir_node* op = fc->costs[i].irn;
last = 0;
for (i = 0; i < arity; ++i) {
ir_node* op = fc->costs[i].irn;
- if (op == last)
continue;
- if (get_irn_mode(op) == mode_M)
continue;
- if (arch_irn_is(
cur_arch_env, op, ignore))
continue;
+ if (op == last) continue;
+ if (get_irn_mode(op) == mode_M) continue;
+ if (arch_irn_is(
op, ignore))
continue;
cost = MAX(fc->costs[i].cost + n_op_res, cost);
last = op;
++n_op_res;
cost = MAX(fc->costs[i].cost + n_op_res, cost);
last = op;
++n_op_res;
@@
-368,8
+363,6
@@
static void *normal_init_graph(const list_sched_selector_t *vtab,
(void)vtab;
(void)vtab;
- cur_arch_env = be_get_birg_arch_env(birg);
-
be_clear_links(irg);
heights = heights_new(irg);
be_clear_links(irg);
heights = heights_new(irg);