summaryrefslogtreecommitdiffhomepage
path: root/ir/be/belistsched.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-05-20 15:46:18 +0200
committerMatthias Braun <matze@braunis.de>2014-05-20 15:51:59 +0200
commitf9733cbf4b22ed777542229144d3a3598992c42c (patch)
tree36248e67c06e2fd041031d554b904baa8de5b09c /ir/be/belistsched.c
parentbc094643978c8b0953a9433fb70a3e4734971d0f (diff)
factor out not_scheduled flag testing
You have to think about the is_Proj() special case, so factoring this out is warranted.
Diffstat (limited to 'ir/be/belistsched.c')
-rw-r--r--ir/be/belistsched.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/be/belistsched.c b/ir/be/belistsched.c
index 669c6e0..76fae62 100644
--- a/ir/be/belistsched.c
+++ b/ir/be/belistsched.c
@@ -90,8 +90,7 @@ static void add_to_sched(block_sched_env_t *env, ir_node *irn);
*/
static void node_ready(block_sched_env_t *env, ir_node *pred, ir_node *irn)
{
- if (is_Proj(irn)
- || (arch_get_irn_flags(irn) & arch_irn_flag_not_scheduled)) {
+ if (arch_is_irn_not_scheduled(irn)) {
selected(env, irn);
DB((dbg, LEVEL_3, "\tmaking immediately available: %+F\n", irn));
} else if (be_is_Keep(irn) || be_is_CopyKeep(irn)) {