Merge remote-tracking branch 'origin/trunk' into refcount

This commit is contained in:
Folkert 2020-08-09 13:49:13 +02:00
commit 4caef70668
8 changed files with 1981 additions and 14 deletions

View file

@ -910,7 +910,7 @@ pub fn optimize_when<'a>(
let choice_decider = insert_choices(&choices, decider);
let expr = decide_to_branching(
decide_to_branching(
env,
procs,
layout_cache,
@ -919,12 +919,7 @@ pub fn optimize_when<'a>(
ret_layout,
choice_decider,
&jumps,
);
// increase the jump counter by the number of jumps in this branching structure
*env.jump_counter += jumps.len() as u64;
expr
)
}
fn path_to_expr<'a>(