Skip to content

Commit 59c5259

Browse files
committed
Add a clarifying comment.
This is something that took me some time to figure out.
1 parent 20de2ba commit 59c5259

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_monomorphize/src/partitioning

1 file changed

+2
-0
lines changed

compiler/rustc_monomorphize/src/partitioning/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ where
259259
debug_dump(tcx, "INITIAL PARTITIONING", &codegen_units);
260260

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

0 commit comments

Comments
 (0)