Skip to content

Commit

Permalink
Remove unreachable bbs in clone_bbs.
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmakarov committed Jun 4, 2024
1 parent e1f198b commit b02f955
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mir-gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2100,7 +2100,10 @@ static int clone_bbs (gen_ctx_t gen_ctx) {
}
});
}
if (res) enumerate_bbs (gen_ctx);
if (res) {
remove_unreachable_bbs (gen_ctx);
enumerate_bbs (gen_ctx);
}
return res;
}

Expand Down

0 comments on commit b02f955

Please sign in to comment.