summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beblocksched.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 22:25:37 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 23:03:59 +0200
commita5002eb22945df142f72bb3807065b96caf1bb1f (patch)
tree12d5ccbd31acc774566fdbfbb3df10faf6140fc8 /ir/be/beblocksched.c
parent88b428f23045d2410147fb97b22d8b4982ef6b04 (diff)
Use get_blocksched_entry().
Diffstat (limited to 'ir/be/beblocksched.c')
-rw-r--r--ir/be/beblocksched.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/ir/be/beblocksched.c b/ir/be/beblocksched.c
index 12d6073..e920d2c 100644
--- a/ir/be/beblocksched.c
+++ b/ir/be/beblocksched.c
@@ -294,8 +294,8 @@ static void coalesce_blocks(blocksched_env_t *env)
continue;
pred_block = get_Block_cfgpred_block(block, pos);
- entry = (blocksched_entry_t*)get_irn_link(block);
- pred_entry = (blocksched_entry_t*)get_irn_link(pred_block);
+ entry = get_blocksched_entry(block);
+ pred_entry = get_blocksched_entry(pred_block);
if (pred_entry->next != NULL || entry->prev != NULL)
continue;
@@ -333,8 +333,8 @@ static void coalesce_blocks(blocksched_env_t *env)
continue;
pred_block = get_Block_cfgpred_block(block, pos);
- entry = (blocksched_entry_t*)get_irn_link(block);
- pred_entry = (blocksched_entry_t*)get_irn_link(pred_block);
+ entry = get_blocksched_entry(block);
+ pred_entry = get_blocksched_entry(pred_block);
if (pred_entry->next != NULL || entry->prev != NULL)
continue;
@@ -375,8 +375,8 @@ static void coalesce_blocks(blocksched_env_t *env)
continue;
pred_block = get_Block_cfgpred_block(block, pos);
- entry = (blocksched_entry_t*)get_irn_link(block);
- pred_entry = (blocksched_entry_t*)get_irn_link(pred_block);
+ entry = get_blocksched_entry(block);
+ pred_entry = get_blocksched_entry(pred_block);
/* is 1 of the blocks already attached to another block? */
if (pred_entry->next != NULL || entry->prev != NULL)
@@ -413,7 +413,7 @@ static void pick_block_successor(blocksched_entry_t *entry, blocksched_env_t *en
/* we only need to put the first of a series of already connected
* blocks into the worklist */
- succ_entry = (blocksched_entry_t*)get_irn_link(succ_block);
+ succ_entry = get_blocksched_entry(succ_block);
while (succ_entry->prev != NULL) {
/* break cycles... */
if (succ_entry->prev->block == succ_block) {
@@ -449,7 +449,7 @@ static void pick_block_successor(blocksched_entry_t *entry, blocksched_env_t *en
if (irn_visited(succ_block))
continue;
- succ_entry = (blocksched_entry_t*)get_irn_link(succ_block);
+ succ_entry = get_blocksched_entry(succ_block);
if (succ_entry->prev != NULL)
continue;
@@ -472,7 +472,7 @@ static void pick_block_successor(blocksched_entry_t *entry, blocksched_env_t *en
} while (irn_visited(succ));
}
- succ_entry = (blocksched_entry_t*)get_irn_link(succ);
+ succ_entry = get_blocksched_entry(succ);
entry->next = succ_entry;
succ_entry->prev = entry;
@@ -483,7 +483,7 @@ static blocksched_entry_t *finish_block_schedule(blocksched_env_t *env)
{
ir_graph *irg = env->irg;
ir_node *startblock = get_irg_start_block(irg);
- blocksched_entry_t *entry = (blocksched_entry_t*)get_irn_link(startblock);
+ blocksched_entry_t *entry = get_blocksched_entry(startblock);
ir_reserve_resources(irg, IR_RESOURCE_IRN_VISITED);
inc_irg_visited(irg);