projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
be_abi_put_ignore_regs returns now number of ignore registers as unsigned
[libfirm]
/
ir
/
be
/
bespillremat.c
diff --git
a/ir/be/bespillremat.c
b/ir/be/bespillremat.c
index
b75215e
..
5aa573b
100644
(file)
--- a/
ir/be/bespillremat.c
+++ b/
ir/be/bespillremat.c
@@
-17,15
+17,12
@@
* PURPOSE.
*/
* PURPOSE.
*/
-/** vim: set sw=4 ts=4:
- * @file bespillremat.c
- * @date 2006-04-06
- * @author Adam M. Szalkowski & Sebastian Hack
- *
- * ILP based spilling & rematerialization
- *
- * Copyright (C) 2006 Universitaet Karlsruhe
- * Released under the GPL
+/**
+ * @file
+ * @brief ILP based spilling & rematerialization
+ * @author Adam M. Szalkowski
+ * @date 06.04.2006
+ * @version $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
@@
-50,7
+47,7
@@
#include "irloop_t.h"
#include "irnodeset.h"
#include "phiclass.h"
#include "irloop_t.h"
#include "irnodeset.h"
#include "phiclass.h"
-#include "iredges.h"
+#include "iredges
_t
.h"
#include "execfreq.h"
#include "irvrfy.h"
#include "irbackedge_t.h"
#include "execfreq.h"
#include "irvrfy.h"
#include "irbackedge_t.h"
@@
-66,6
+63,7
@@
#include "besched_t.h"
#include "bessaconstr.h"
#include "bearch_t.h"
#include "besched_t.h"
#include "bessaconstr.h"
#include "bearch_t.h"
+#include "beintlive_t.h"
#include "beabi.h"
#include "benode_t.h"
#include "beutil.h"
#include "beabi.h"
#include "benode_t.h"
#include "beutil.h"
@@
-74,8
+72,8
@@
#include "bepressurestat.h"
#include "beprofile.h"
#include "bespilloptions.h"
#include "bepressurestat.h"
#include "beprofile.h"
#include "bespilloptions.h"
-
#include "bechordal_t.h"
#include "bechordal_t.h"
+#include "bemodule.h"
#include <libcore/lc_opts.h>
#include <libcore/lc_opts_enum.h>
#include <libcore/lc_opts.h>
#include <libcore/lc_opts_enum.h>
@@
-2914,19
+2912,19
@@
set_insert_interference(spill_ilp_t * si, set * set, ir_node * a, ir_node * b, i
return result;
}
return result;
}
-static
int
-
values_interfere_in_block(const spill_ilp_t * si, const ir_node * bb, const ir_node * a, const ir_node *
b)
+static
+
int values_interfere_in_block(const spill_ilp_t *si, const ir_node *bb, const ir_node *a, const ir_node *
b)
{
const ir_edge_t *edge;
{
const ir_edge_t *edge;
- if(get_nodes_block(a) != bb && get_nodes_block(b) != bb) {
+ if
(get_nodes_block(a) != bb && get_nodes_block(b) != bb) {
/* both values are live in, so they interfere */
return 1;
}
/* ensure a dominates b */
/* both values are live in, so they interfere */
return 1;
}
/* ensure a dominates b */
- if
(value_dominates(b,
a)) {
- const ir_node *
t;
+ if
(value_dominates(b,
a)) {
+ const ir_node *t;
t = b;
b = a;
a = t;
t = b;
b = a;
a = t;
@@
-2935,15
+2933,15
@@
values_interfere_in_block(const spill_ilp_t * si, const ir_node * bb, const ir_n
/* the following code is stolen from bera.c */
/* the following code is stolen from bera.c */
- if(be_is_live_end(si->lv, bb, a))
+ if
(be_is_live_end(si->lv, bb, a))
return 1;
foreach_out_edge(a, edge) {
const ir_node *user = edge->src;
return 1;
foreach_out_edge(a, edge) {
const ir_node *user = edge->src;
- if(get_nodes_block(user) == bb
- && !is_Phi(user)
+ if
(get_nodes_block(user) == bb
+ && !
is_Phi(user)
&& b != user
&& b != user
- && !pset_find_ptr(si->inverse_ops, user)
+ && !
pset_find_ptr(si->inverse_ops, user)
&& value_dominates(b, user))
return 1;
}
&& value_dominates(b, user))
return 1;
}