diff options
| author | bors <bors@rust-lang.org> | 2024-12-01 04:54:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-12-01 04:54:02 +0000 |
| commit | 8ac313bdbede661669d7a7b4504b0f74d4ed9222 (patch) | |
| tree | 4e3c7921b3b22181f43df28db830f976d0dbc736 /compiler/rustc_codegen_llvm/src/back/write.rs | |
| parent | 4af7fa79a0e829c0edcc93434a8c788be8ec58c6 (diff) | |
| parent | fc9f727c7ce2e7ce3bedc0fe0ad390d20b72eb32 (diff) | |
| download | rust-8ac313bdbede661669d7a7b4504b0f74d4ed9222.tar.gz rust-8ac313bdbede661669d7a7b4504b0f74d4ed9222.zip | |
Auto merge of #133499 - nikic:no-backend-verify, r=Mark-Simulacrum
Respect verify-llvm-ir option in the backend We are currently unconditionally verifying the LLVM IR in the backend (twice), ignoring the value of the verify-llvm-ir option. This has substantial compile-time impact for debug builds.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/write.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs index 00f7b479fa7..2744795d998 100644 --- a/compiler/rustc_codegen_llvm/src/back/write.rs +++ b/compiler/rustc_codegen_llvm/src/back/write.rs @@ -61,6 +61,7 @@ fn write_output_file<'ll>( dwo_output: Option<&Path>, file_type: llvm::FileType, self_profiler_ref: &SelfProfilerRef, + verify_llvm_ir: bool, ) -> Result<(), FatalError> { debug!("write_output_file output={:?} dwo_output={:?}", output, dwo_output); unsafe { @@ -79,6 +80,7 @@ fn write_output_file<'ll>( output_c.as_ptr(), dwo_output_ptr, file_type, + verify_llvm_ir, ); // Record artifact sizes for self-profiling @@ -840,6 +842,7 @@ pub(crate) unsafe fn codegen( None, llvm::FileType::AssemblyFile, &cgcx.prof, + config.verify_llvm_ir, ) })?; } @@ -877,6 +880,7 @@ pub(crate) unsafe fn codegen( dwo_out, llvm::FileType::ObjectFile, &cgcx.prof, + config.verify_llvm_ir, ) })?; } |
