diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-05-24 11:50:32 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-05-24 12:33:35 +1000 |
| commit | 59c5259bc92542f76db04cfc96bdb92c4b15401a (patch) | |
| tree | 315543480256a029c9ac2ccd408c9d396d188dd0 /compiler/rustc_monomorphize/src/partitioning/mod.rs | |
| parent | 20de2ba7596322026501e1b5134c8724224b844e (diff) | |
| download | rust-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.rs | 2 |
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); |
