From 72e2e8027b38f13ff2cdcf109fee5e7ce524745f Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Wed, 20 Nov 2024 18:15:50 -0500 Subject: [PATCH] single commit with new opt2 impl --- compiler/rustc_codegen_llvm/src/context.rs | 4 ---- src/bootstrap/src/core/build_steps/compile.rs | 4 ---- 2 files changed, 8 deletions(-) diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs index 7d36a490c68e6..624fdbec8f632 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -737,10 +737,6 @@ impl<'ll, 'tcx> MiscCodegenMethods<'tcx> for CodegenCx<'ll, 'tcx> { } } - // TODO: Manuel: I think we can drop this and construct the empty vec on the fly? - fn create_autodiff(&self) -> Vec { - return vec![]; - } } impl<'ll> CodegenCx<'ll, '_> { diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/core/build_steps/compile.rs index bb78f05e838ee..0033673079067 100644 --- a/src/bootstrap/src/core/build_steps/compile.rs +++ b/src/bootstrap/src/core/build_steps/compile.rs @@ -1068,10 +1068,6 @@ pub fn rustc_cargo( // . cargo.rustflag("-Zon-broken-pipe=kill"); - //if builder.config.llvm_enzyme { - // cargo.rustflag("-l").rustflag("Enzyme-19"); - //} - // We currently don't support cross-crate LTO in stage0. This also isn't hugely necessary // and may just be a time sink. if compiler.stage != 0 {