summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beblocksched.c
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2017-08-31 11:23:26 +0200
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2017-09-29 21:20:47 +0200
commit713034ac59d27f9af043fde034eef83ce69e0c13 (patch)
tree80ab76650aa16093f45d3ac8f2709978f58fcdf0 /ir/be/beblocksched.c
parentb4a0a4e38a0d8652e030b91ef0ce3a6452656a50 (diff)
Slightly improve comments in block scheduler
Diffstat (limited to 'ir/be/beblocksched.c')
-rw-r--r--ir/be/beblocksched.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ir/be/beblocksched.c b/ir/be/beblocksched.c
index 364a9ad..25eb0b2 100644
--- a/ir/be/beblocksched.c
+++ b/ir/be/beblocksched.c
@@ -312,8 +312,8 @@ static void coalesce_blocks(blocksched_env_t *env)
if (!edge->highest_execfreq)
continue;
- ir_node *const block = edge->block;
/* the block might have been removed already... */
+ ir_node *const block = edge->block;
if (is_Bad(get_Block_cfgpred(block, 0)))
continue;
@@ -321,6 +321,7 @@ static void coalesce_blocks(blocksched_env_t *env)
blocksched_entry_t *entry = get_blocksched_entry(block);
blocksched_entry_t *pred_entry = get_blocksched_entry(pred_block);
+ /* is one of the blocks already attached to another block? */
if (pred_entry->next != NULL || entry->prev != NULL)
continue;
@@ -328,7 +329,7 @@ static void coalesce_blocks(blocksched_env_t *env)
if (get_block_succ_next(pred_block, get_block_succ_first(pred_block)) != NULL)
continue;
- /* schedule the 2 blocks behind each other */
+ /* schedule the two blocks behind each other */
DB((dbg, LEVEL_1, "Coalesce (Jump) %+F -> %+F (%.3g)\n",
pred_entry->block, entry->block, edge->execfreq));
pred_entry->next = entry;
@@ -395,11 +396,11 @@ static void coalesce_blocks(blocksched_env_t *env)
blocksched_entry_t *const entry = get_blocksched_entry(block);
blocksched_entry_t *const pred_entry = get_blocksched_entry(pred_block);
- /* is 1 of the blocks already attached to another block? */
+ /* is one of the blocks already attached to another block? */
if (pred_entry->next != NULL || entry->prev != NULL)
continue;
- /* schedule the 2 blocks behind each other */
+ /* schedule the two blocks behind each other */
DB((dbg, LEVEL_1, "Coalesce (CondJump) %+F -> %+F (%.3g)\n",
pred_entry->block, entry->block, edge->execfreq));
pred_entry->next = entry;