Skip to content

Commit

Permalink
Add a clarifying comment.
Browse files Browse the repository at this point in the history
This is something that took me some time to figure out.
  • Loading branch information
nnethercote committed May 24, 2023
1 parent 20de2ba commit 59c5259
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_monomorphize/src/partitioning/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ where
debug_dump(tcx, "INITIAL PARTITIONING", &codegen_units);

// Merge until we have at most `max_cgu_count` codegen units.
// `merge_codegen_units` is responsible for updating the CGU size
// estimates.
{
let _prof_timer = tcx.prof.generic_activity("cgu_partitioning_merge_cgus");
partitioner.merge_codegen_units(cx, &mut codegen_units);
Expand Down

0 comments on commit 59c5259

Please sign in to comment.