Skip to content

Commit f6cadae

Browse files
committed
Streamline some comments.
1 parent 006a26c commit f6cadae

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

compiler/rustc_monomorphize/src/partitioning.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,9 @@ where
175175
debug_dump(tcx, "MERGE", &codegen_units, unique_inlined_stats);
176176
}
177177

178-
// In the next step, we use the inlining map to determine which additional
179-
// monomorphizations have to go into each codegen unit. These additional
180-
// monomorphizations can be drop-glue, functions from external crates, and
181-
// local functions the definition of which is marked with `#[inline]`.
178+
// Use the usage map to put additional mono items in each codegen unit:
179+
// drop-glue, functions from external crates, and local functions the
180+
// definition of which is marked with `#[inline]`.
182181
{
183182
let _prof_timer = tcx.prof.generic_activity("cgu_partitioning_place_inline_items");
184183
place_inlined_mono_items(cx, &mut codegen_units);
@@ -190,8 +189,8 @@ where
190189
debug_dump(tcx, "INLINE", &codegen_units, unique_inlined_stats);
191190
}
192191

193-
// Next we try to make as many symbols "internal" as possible, so LLVM has
194-
// more freedom to optimize.
192+
// Make as many symbols "internal" as possible, so LLVM has more freedom to
193+
// optimize.
195194
if !tcx.sess.link_dead_code() {
196195
let _prof_timer = tcx.prof.generic_activity("cgu_partitioning_internalize_symbols");
197196
internalize_symbols(cx, &mut codegen_units, internalization_candidates);

0 commit comments

Comments
 (0)