summaryrefslogtreecommitdiffhomepage
path: root/ir/be/betranshlp.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-09-07 08:46:46 +0200
committerMatthias Braun <matze@braunis.de>2015-09-07 19:58:31 +0200
commit634770b1b2430429a6806f62510204794e0c72d0 (patch)
treeb6dec083a05c390fb2c190bd9279bc78b71355c1 /ir/be/betranshlp.c
parent7ccf89031d721175b95e18e420e106c34f63e40b (diff)
pdeq: Remove unnecessary waitq aliases
Diffstat (limited to 'ir/be/betranshlp.c')
-rw-r--r--ir/be/betranshlp.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/ir/be/betranshlp.c b/ir/be/betranshlp.c
index 23ef733..6630a3f 100644
--- a/ir/be/betranshlp.c
+++ b/ir/be/betranshlp.c
@@ -36,8 +36,7 @@
#include "util.h"
typedef struct be_transform_env_t {
- waitq *worklist; /**< worklist of nodes that still need to be
- transformed */
+ pdeq *worklist; /**< worklist of nodes that still need to be transformed */
} be_transform_env_t;
static be_transform_env_t env;
@@ -254,7 +253,7 @@ static void transform_nodes(ir_graph *irg, arch_pretrans_nodes *pre_transform)
inc_irg_visited(irg);
- env.worklist = new_waitq();
+ env.worklist = new_pdeq();
ir_node *const old_anchor = irg->anchor;
ir_node *const new_anchor = new_r_Anchor(irg);
@@ -272,8 +271,8 @@ static void transform_nodes(ir_graph *irg, arch_pretrans_nodes *pre_transform)
pre_transform(irg);
/* process worklist (this should transform all nodes in the graph) */
- while (! waitq_empty(env.worklist)) {
- ir_node *node = (ir_node*)waitq_get(env.worklist);
+ while (!pdeq_empty(env.worklist)) {
+ ir_node *node = (ir_node*)pdeq_getl(env.worklist);
be_transform_node(node);
}
@@ -283,7 +282,7 @@ static void transform_nodes(ir_graph *irg, arch_pretrans_nodes *pre_transform)
fix_loops(n);
}
- del_waitq(env.worklist);
+ del_pdeq(env.worklist);
free_End(old_end);
hook_dead_node_elim(irg, 0);
}