Add a clarifying comment.

This is something that took me some time to figure out.
This commit is contained in:
Nicholas Nethercote 2023-05-24 11:50:32 +10:00
parent 20de2ba759
commit 59c5259bc9

View File

@ -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);