projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify example.
[libfirm]
/
ir
/
be
/
bespillslots.c
diff --git
a/ir/be/bespillslots.c
b/ir/be/bespillslots.c
index
408222c
..
10599ce
100644
(file)
--- a/
ir/be/bespillslots.c
+++ b/
ir/be/bespillslots.c
@@
-24,9
+24,7
@@
* @date 26.07.2006
* @version $Id$
*/
* @date 26.07.2006
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config.h"
-#endif
#include <stdlib.h>
#include <stdlib.h>
@@
-43,7
+41,6
@@
#include "besched.h"
#include "bespillslots.h"
#include "bechordal_t.h"
#include "besched.h"
#include "bespillslots.h"
#include "bechordal_t.h"
-#include "bejavacoal.h"
#include "bestatevent.h"
#include "bespilloptions.h"
#include "bemodule.h"
#include "bestatevent.h"
#include "bespilloptions.h"
#include "bemodule.h"
@@
-109,7
+106,7
@@
static spill_t *get_spill(be_fec_env_t *env, ir_node *node)
}
}
-static
INLINE
ir_node *get_memory_edge(const ir_node *node)
+static
inline
ir_node *get_memory_edge(const ir_node *node)
{
int i, arity;
{
int i, arity;
@@
-815,7
+812,6
@@
void be_assign_entities(be_fec_env_t *env)
static void collect_spills_walker(ir_node *node, void *data)
{
be_fec_env_t *env = data;
static void collect_spills_walker(ir_node *node, void *data)
{
be_fec_env_t *env = data;
- const arch_env_t *arch_env = env->arch_env;
const ir_mode *mode;
const arch_register_class_t *cls;
int align;
const ir_mode *mode;
const arch_register_class_t *cls;
int align;
@@
-824,12
+820,12
@@
static void collect_spills_walker(ir_node *node, void *data)
if (is_Proj(node))
return;
if (is_Proj(node))
return;
- if (!arch_irn_class_is(
arch_env,
node, reload))
+ if (!arch_irn_class_is(node, reload))
return;
mode = get_irn_mode(node);
return;
mode = get_irn_mode(node);
- cls = arch_get_irn_reg_class
(node, -1
);
- align = arch_env_get_reg_class_alignment(arch_env, cls);
+ cls = arch_get_irn_reg_class
_out(node
);
+ align = arch_env_get_reg_class_alignment(
env->
arch_env, cls);
be_node_needs_frame_entity(env, node, mode, align);
}
be_node_needs_frame_entity(env, node, mode, align);
}