projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed to_appear_in_schedule: 1 - yes, 0 - no, -1 - don't know
[libfirm]
/
ir
/
be
/
belistsched.c
diff --git
a/ir/be/belistsched.c
b/ir/be/belistsched.c
index
3aedf5b
..
b172575
100644
(file)
--- a/
ir/be/belistsched.c
+++ b/
ir/be/belistsched.c
@@
-138,12
+138,12
@@
static void *trivial_init_block(void *graph_env, ir_node *bl)
static INLINE int must_appear_in_schedule(const list_sched_selector_t *sel, void *block_env, const ir_node *irn)
{
static INLINE int must_appear_in_schedule(const list_sched_selector_t *sel, void *block_env, const ir_node *irn)
{
- int res =
0
;
+ int res =
-1
;
if(sel->to_appear_in_schedule)
res = sel->to_appear_in_schedule(block_env, irn);
if(sel->to_appear_in_schedule)
res = sel->to_appear_in_schedule(block_env, irn);
- return res
|| to_appear_in_schedule(irn) || be_is_Keep(irn) || be_is_RegParams(irn
);
+ return res
>= 0 ? res : (to_appear_in_schedule(irn) || be_is_Keep(irn) || be_is_RegParams(irn)
);
}
static const list_sched_selector_t trivial_selector_struct = {
}
static const list_sched_selector_t trivial_selector_struct = {