projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
enabled non-ia32 backends again: undo change 14191
[libfirm]
/
ir
/
be
/
bessadestr.c
diff --git
a/ir/be/bessadestr.c
b/ir/be/bessadestr.c
index
825f46b
..
41c11d3
100644
(file)
--- a/
ir/be/bessadestr.c
+++ b/
ir/be/bessadestr.c
@@
-18,12
+18,11
@@
*/
/**
*/
/**
- * Author: Daniel Grund
- * Date: 25.05.2005
- * Copyright: (c) Universitaet Karlsruhe
- * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
- *
- * Performs SSA-Destruction.
+ * @file
+ * @brief Performs SSA-Destruction.
+ * @author Daniel Grund
+ * @date 25.05.2005
+ * @version $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
@@
-49,6
+48,8
@@
#include "besched_t.h"
#include "benodesets.h"
#include "bestatevent.h"
#include "besched_t.h"
#include "benodesets.h"
#include "bestatevent.h"
+#include "beirg_t.h"
+#include "beintlive_t.h"
DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)
DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)
@@
-72,7
+73,7
@@
static void clear_link(ir_node *irn, void *data) {
*/
static void collect_phis_walker(ir_node *irn, void *data) {
be_chordal_env_t *env = data;
*/
static void collect_phis_walker(ir_node *irn, void *data) {
be_chordal_env_t *env = data;
- if(is_Phi(irn) && chordal_has_class(env, irn)) {
+ if
(is_Phi(irn) && chordal_has_class(env, irn)) {
ir_node *bl = get_nodes_block(irn);
set_irn_link(irn, get_irn_link(bl));
set_irn_link(bl, irn);
ir_node *bl = get_nodes_block(irn);
set_irn_link(irn, get_irn_link(bl));
set_irn_link(bl, irn);
@@
-220,7
+221,6
@@
static void insert_all_perms_walker(ir_node *bl, void *data) {
*/
static void set_regs_or_place_dupls_walker(ir_node *bl, void *data) {
be_chordal_env_t *chordal_env = data;
*/
static void set_regs_or_place_dupls_walker(ir_node *bl, void *data) {
be_chordal_env_t *chordal_env = data;
- be_lv_t *lv = chordal_env->birg->lv;
ir_node *phi;
/* Consider all phis of this block */
ir_node *phi;
/* Consider all phis of this block */
@@
-246,7
+246,7
@@
static void set_regs_or_place_dupls_walker(ir_node *bl, void *data) {
DBG((dbg, LEVEL_1, " for %+F(%s) -- %+F(%s)\n", phi, phi_reg->name, arg, arg_reg->name));
DBG((dbg, LEVEL_1, " for %+F(%s) -- %+F(%s)\n", phi, phi_reg->name, arg, arg_reg->name));
- if
(values_interfere(lv
, phi, arg)) {
+ if
(values_interfere(chordal_env->birg
, phi, arg)) {
/*
Insert a duplicate in arguments block,
make it the new phi arg,
/*
Insert a duplicate in arguments block,
make it the new phi arg,