@@ -175,10 +175,9 @@ where
175
175
debug_dump ( tcx, "MERGE" , & codegen_units, unique_inlined_stats) ;
176
176
}
177
177
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]`.
182
181
{
183
182
let _prof_timer = tcx. prof . generic_activity ( "cgu_partitioning_place_inline_items" ) ;
184
183
place_inlined_mono_items ( cx, & mut codegen_units) ;
@@ -190,8 +189,8 @@ where
190
189
debug_dump ( tcx, "INLINE" , & codegen_units, unique_inlined_stats) ;
191
190
}
192
191
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.
195
194
if !tcx. sess . link_dead_code ( ) {
196
195
let _prof_timer = tcx. prof . generic_activity ( "cgu_partitioning_internalize_symbols" ) ;
197
196
internalize_symbols ( cx, & mut codegen_units, internalization_candidates) ;
0 commit comments