Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Mar 26, 2024
1 parent d6697e9 commit b2e92a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ir_gcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,9 @@ static void ir_gcm_schedule_late(ir_ctx *ctx, ir_ref ref, uint32_t b)
}

IR_ASSERT(lca != 0 && "No Common Ancestor");
b = lca;

if (b != ctx->cfg_map[ref]) {
b = ir_gcm_select_best_block(ctx, ref, b);
if (lca != ctx->cfg_map[ref]) {
b = ir_gcm_select_best_block(ctx, ref, lca);

ctx->cfg_map[ref] = b;
if (ctx->ir_base[ref + 1].op == IR_OVERFLOW) {
Expand Down

0 comments on commit b2e92a5

Please sign in to comment.