projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sparc: implement float->unsigned conversions
[libfirm]
/
ir
/
be
/
bespillbelady.c
diff --git
a/ir/be/bespillbelady.c
b/ir/be/bespillbelady.c
index
282f885
..
7424d3d
100644
(file)
--- a/
ir/be/bespillbelady.c
+++ b/
ir/be/bespillbelady.c
@@
-22,7
+22,6
@@
* @brief Beladys spillalgorithm.
* @author Daniel Grund, Matthias Braun
* @date 20.09.2005
* @brief Beladys spillalgorithm.
* @author Daniel Grund, Matthias Braun
* @date 20.09.2005
- * @version $Id$
*/
#include "config.h"
*/
#include "config.h"
@@
-39,6
+38,8
@@
#include "ircons_t.h"
#include "irprintf.h"
#include "irnodeset.h"
#include "ircons_t.h"
#include "irprintf.h"
#include "irnodeset.h"
+#include "irtools.h"
+#include "util.h"
#include "beutil.h"
#include "bearch.h"
#include "beutil.h"
#include "bearch.h"
@@
-293,7
+294,7
@@
static unsigned get_distance(ir_node *from, const ir_node *def, int skip_from_us
return USES_INFINITY;
/* We have to keep nonspillable nodes in the workingset */
return USES_INFINITY;
/* We have to keep nonspillable nodes in the workingset */
- if (arch_
irn_get
_flags(skip_Proj_const(def)) & arch_irn_flags_dont_spill)
+ if (arch_
get_irn
_flags(skip_Proj_const(def)) & arch_irn_flags_dont_spill)
return 0;
/* give some bonus to rematerialisable nodes */
return 0;
/* give some bonus to rematerialisable nodes */
@@
-479,7
+480,7
@@
static loc_t to_take_or_not_to_take(ir_node* first, ir_node *node,
}
/* We have to keep nonspillable nodes in the workingset */
}
/* We have to keep nonspillable nodes in the workingset */
- if (arch_
irn_get
_flags(skip_Proj_const(node)) & arch_irn_flags_dont_spill) {
+ if (arch_
get_irn
_flags(skip_Proj_const(node)) & arch_irn_flags_dont_spill) {
loc.time = 0;
DB((dbg, DBG_START, " %+F taken (dontspill node)\n", node, loc.time));
return loc;
loc.time = 0;
DB((dbg, DBG_START, " %+F taken (dontspill node)\n", node, loc.time));
return loc;
@@
-945,13
+946,10
@@
static void be_spill_belady(ir_graph *irg, const arch_register_class_t *rcls)
{
int i;
{
int i;
- be_
liveness_assure_sets(be_assure_liveness(irg)
);
+ be_
assure_live_sets(irg
);
stat_ev_tim_push();
stat_ev_tim_push();
- /* construct control flow loop tree */
- if (! (get_irg_loopinfo_state(irg) & loopinfo_cf_consistent)) {
- construct_cf_backedges(irg);
- }
+ assure_loopinfo(irg);
stat_ev_tim_pop("belady_time_backedges");
stat_ev_tim_push();
stat_ev_tim_pop("belady_time_backedges");
stat_ev_tim_push();