diff options
| author | bors <bors@rust-lang.org> | 2021-11-27 17:36:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-11-27 17:36:00 +0000 |
| commit | 7e15b235f62dce8a21e51c2eff6b2c0cde9b018e (patch) | |
| tree | 9b8500d228972307224f1818ca006ddf606546dc /compiler/rustc_codegen_llvm/src | |
| parent | ef1a3b93491be53289ab6b8af235a9e100d771f2 (diff) | |
| parent | 150bd8ba76722a46fd8a7aacb81c7072a8b677dc (diff) | |
| download | rust-7e15b235f62dce8a21e51c2eff6b2c0cde9b018e.tar.gz rust-7e15b235f62dce8a21e51c2eff6b2c0cde9b018e.zip | |
Auto merge of #91263 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backports * relate lifetime in TypeOutlives bounds on drop impls #90840 * [beta] [1.57] Disable LLVM newPM by default #91189 r? `@Mark-Simulacrum`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/write.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs index 380dfd38723..b6d682f2323 100644 --- a/compiler/rustc_codegen_llvm/src/back/write.rs +++ b/compiler/rustc_codegen_llvm/src/back/write.rs @@ -378,18 +378,14 @@ fn get_pgo_sample_use_path(config: &ModuleConfig) -> Option<CString> { } pub(crate) fn should_use_new_llvm_pass_manager( - cgcx: &CodegenContext<LlvmCodegenBackend>, + _cgcx: &CodegenContext<LlvmCodegenBackend>, config: &ModuleConfig, ) -> bool { - // The new pass manager is enabled by default for LLVM >= 13. - // This matches Clang, which also enables it since Clang 13. - - // FIXME: There are some perf issues with the new pass manager - // when targeting s390x, so it is temporarily disabled for that - // arch, see https://github.com/rust-lang/rust/issues/89609 + // The new pass manager is causing significant performance issues such as #91128, and is + // therefore disabled in stable versions of rustc by default. config .new_llvm_pass_manager - .unwrap_or_else(|| cgcx.target_arch != "s390x" && llvm_util::get_version() >= (13, 0, 0)) + .unwrap_or(false) } pub(crate) unsafe fn optimize_with_new_llvm_pass_manager( |
