projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- if an empty labeled block is killed, move the label to the successor block
[libfirm]
/
ir
/
be
/
bespillbelady.c
diff --git
a/ir/be/bespillbelady.c
b/ir/be/bespillbelady.c
index
4e4000d
..
768ece1
100644
(file)
--- a/
ir/be/bespillbelady.c
+++ b/
ir/be/bespillbelady.c
@@
-280,11
+280,10
@@
static inline unsigned get_distance(ir_node *from, unsigned from_step,
const ir_node *def, int skip_from_uses)
{
be_next_use_t use;
const ir_node *def, int skip_from_uses)
{
be_next_use_t use;
- int flags = arch_irn_get_flags(def);
unsigned costs;
unsigned time;
unsigned costs;
unsigned time;
- assert(!
(flags & arch_irn_flags_ignore
));
+ assert(!
arch_irn_is_ignore(def
));
use = be_get_next_use(uses, from, from_step, def, skip_from_uses);
time = use.time;
use = be_get_next_use(uses, from, from_step, def, skip_from_uses);
time = use.time;
@@
-292,7
+291,7
@@
static inline unsigned get_distance(ir_node *from, unsigned from_step,
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 (
flags
& arch_irn_flags_dont_spill)
+ if (
arch_irn_get_flags(def)
& arch_irn_flags_dont_spill)
return 0;
/* give some bonus to rematerialisable nodes */
return 0;
/* give some bonus to rematerialisable nodes */