improve call_by_name with raw layout

This commit is contained in:
Folkert 2021-06-19 13:49:41 +02:00
parent 4a8ec50c0e
commit 53ce8b2d25
3 changed files with 95 additions and 108 deletions

View file

@ -2060,8 +2060,6 @@ fn update<'a>(
&& state.dependencies.solved_all()
&& state.goal_phase == Phase::MakeSpecializations
{
Proc::insert_refcount_operations(arena, &mut state.procedures);
// display the mono IR of the module, for debug purposes
if roc_mono::ir::PRETTY_PRINT_IR_SYMBOLS {
let procs_string = state
@ -2075,6 +2073,8 @@ fn update<'a>(
println!("{}", result);
}
Proc::insert_refcount_operations(arena, &mut state.procedures);
// This is not safe with the new non-recursive RC updates that we do for tag unions
//
// Proc::optimize_refcount_operations(