X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbespillslots.c;h=10599ce973a4a13bba56afa9f2681d0537d9aa1e;hb=adbae5c7cf3dc4262cad0bb7743c34b462f40907;hp=408222c6bd7cd1d2ca8fcbe82d5c139664a39e1c;hpb=c2fcdf7cddd0c74d5b6562e7ddce316f1695d800;p=libfirm diff --git a/ir/be/bespillslots.c b/ir/be/bespillslots.c index 408222c6b..10599ce97 100644 --- a/ir/be/bespillslots.c +++ b/ir/be/bespillslots.c @@ -24,9 +24,7 @@ * @date 26.07.2006 * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include @@ -43,7 +41,6 @@ #include "besched.h" #include "bespillslots.h" #include "bechordal_t.h" -#include "bejavacoal.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; @@ -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; - const arch_env_t *arch_env = env->arch_env; 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 (!arch_irn_class_is(arch_env, node, reload)) + if (!arch_irn_class_is(node, reload)) 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); }