about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/partitioning/mod.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-05-24 11:50:32 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-05-24 12:33:35 +1000
commit59c5259bc92542f76db04cfc96bdb92c4b15401a (patch)
tree315543480256a029c9ac2ccd408c9d396d188dd0 /compiler/rustc_monomorphize/src/partitioning/mod.rs
parent20de2ba7596322026501e1b5134c8724224b844e (diff)
downloadrust-59c5259bc92542f76db04cfc96bdb92c4b15401a.tar.gz
rust-59c5259bc92542f76db04cfc96bdb92c4b15401a.zip
Add a clarifying comment.
This is something that took me some time to figure out.
Diffstat (limited to 'compiler/rustc_monomorphize/src/partitioning/mod.rs')
-rw-r--r--compiler/rustc_monomorphize/src/partitioning/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_monomorphize/src/partitioning/mod.rs b/compiler/rustc_monomorphize/src/partitioning/mod.rs
index dd0a35c4402..25c10df18a1 100644
--- a/compiler/rustc_monomorphize/src/partitioning/mod.rs
+++ b/compiler/rustc_monomorphize/src/partitioning/mod.rs
@@ -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);