mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Drop unused jump_counter
This commit is contained in:
parent
5c6939e7ec
commit
3fe2a4e3fd
7 changed files with 0 additions and 10 deletions
|
@ -258,7 +258,6 @@ pub fn gen(src: &[u8], target: Triple, opt_level: OptLevel) -> Result<(String, S
|
|||
problems: &mut mono_problems,
|
||||
home,
|
||||
ident_ids: &mut ident_ids,
|
||||
jump_counter: arena.alloc(0),
|
||||
};
|
||||
|
||||
let main_body = roc_mono::expr::Expr::new(&mut mono_env, loc_expr.value, &mut procs);
|
||||
|
|
|
@ -169,7 +169,6 @@ pub fn gen(
|
|||
problems: &mut mono_problems,
|
||||
home,
|
||||
ident_ids: &mut ident_ids,
|
||||
jump_counter: arena.alloc(0),
|
||||
};
|
||||
|
||||
// Add modules' decls to Procs
|
||||
|
|
|
@ -70,7 +70,6 @@ macro_rules! assert_llvm_evals_to {
|
|||
problems: &mut mono_problems,
|
||||
home,
|
||||
ident_ids: &mut ident_ids,
|
||||
jump_counter: arena.alloc(0),
|
||||
};
|
||||
|
||||
let main_body = Expr::new(&mut mono_env, loc_expr.value, &mut procs);
|
||||
|
@ -255,7 +254,6 @@ macro_rules! assert_opt_evals_to {
|
|||
problems: &mut mono_problems,
|
||||
home,
|
||||
ident_ids: &mut ident_ids,
|
||||
jump_counter: arena.alloc(0),
|
||||
};
|
||||
let main_body = Expr::new(&mut mono_env, loc_expr.value, &mut procs);
|
||||
|
||||
|
|
|
@ -910,9 +910,6 @@ pub fn optimize_when<'a>(
|
|||
&jumps,
|
||||
);
|
||||
|
||||
// increase the jump counter by the number of jumps in this branching structure
|
||||
*env.jump_counter += jumps.len() as u64;
|
||||
|
||||
Expr::Store(stores, env.arena.alloc(expr))
|
||||
}
|
||||
|
||||
|
|
|
@ -252,7 +252,6 @@ pub struct Env<'a, 'i> {
|
|||
pub problems: &'i mut std::vec::Vec<MonoProblem>,
|
||||
pub home: ModuleId,
|
||||
pub ident_ids: &'i mut IdentIds,
|
||||
pub jump_counter: &'a mut u64,
|
||||
}
|
||||
|
||||
impl<'a, 'i> Env<'a, 'i> {
|
||||
|
|
|
@ -58,7 +58,6 @@ mod test_mono {
|
|||
problems: &mut mono_problems,
|
||||
home,
|
||||
ident_ids: &mut ident_ids,
|
||||
jump_counter: arena.alloc(0),
|
||||
};
|
||||
let mono_expr = Expr::new(&mut mono_env, loc_expr.value, &mut procs);
|
||||
let procs =
|
||||
|
|
|
@ -93,7 +93,6 @@ mod test_reporting {
|
|||
problems: &mut mono_problems,
|
||||
home,
|
||||
ident_ids: &mut ident_ids,
|
||||
jump_counter: arena.alloc(0),
|
||||
};
|
||||
let _mono_expr = Expr::new(&mut mono_env, loc_expr.value, &mut procs);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue