Merge branch 'trunk' into thread-morphic

This commit is contained in:
Richard Feldman 2021-06-02 21:45:13 -04:00 committed by GitHub
commit 60ae15c7ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 131 additions and 61 deletions

View file

@ -2025,7 +2025,7 @@ fn update<'a>(
}
MadeSpecializations {
module_id,
mut ident_ids,
ident_ids,
subs,
procedures,
external_specializations_requested,
@ -2048,6 +2048,8 @@ 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
@ -2061,14 +2063,14 @@ fn update<'a>(
println!("{}", result);
}
Proc::insert_refcount_operations(arena, &mut state.procedures);
Proc::optimize_refcount_operations(
arena,
module_id,
&mut ident_ids,
&mut state.procedures,
);
// This is not safe with the new non-recursive RC updates that we do for tag unions
//
// Proc::optimize_refcount_operations(
// arena,
// module_id,
// &mut ident_ids,
// &mut state.procedures,
// );
state.constrained_ident_ids.insert(module_id, ident_ids);