mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
optimize branching in debug builds
This commit is contained in:
parent
aaa103005a
commit
e87d8f6449
2 changed files with 88 additions and 56 deletions
|
@ -924,11 +924,8 @@ fn build_rec_union_help<'a, 'ctx, 'env>(
|
|||
|
||||
let then_block = ctx.append_basic_block(parent, "then");
|
||||
|
||||
env.builder.build_switch(
|
||||
is_null,
|
||||
cont_block,
|
||||
&[(ctx.bool_type().const_int(1, false), then_block)],
|
||||
);
|
||||
env.builder
|
||||
.build_conditional_branch(is_null, then_block, cont_block);
|
||||
|
||||
{
|
||||
env.builder.position_at_end(then_block);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue