Skip to content

Commit 198fbdf

Browse files
committed
Fix collector opt comment
1 parent 612f437 commit 198fbdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_monomorphize/src/collector/autodiff.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use crate::collector::{MonoItems, create_fn_mono_item};
55

66
// Here, we force both primal and diff function to be collected in
77
// mono so this does not interfere in `autodiff` intrinsics
8-
// codegen process. If they are unused, they will be removed later and
9-
// won't be present at LLVM-IR.
8+
// codegen process. If they are unused, LLVM will remove them when
9+
// compiling with O3.
1010
pub(crate) fn collect_autodiff_fn<'tcx>(
1111
tcx: TyCtxt<'tcx>,
1212
instance: ty::Instance<'tcx>,

0 commit comments

Comments
 (0)