File tree 1 file changed +4
-8
lines changed
compiler/rustc_codegen_llvm/src/back
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -395,18 +395,14 @@ fn get_pgo_sample_use_path(config: &ModuleConfig) -> Option<CString> {
395
395
}
396
396
397
397
pub ( crate ) fn should_use_new_llvm_pass_manager (
398
- cgcx : & CodegenContext < LlvmCodegenBackend > ,
398
+ _cgcx : & CodegenContext < LlvmCodegenBackend > ,
399
399
config : & ModuleConfig ,
400
400
) -> bool {
401
- // The new pass manager is enabled by default for LLVM >= 13.
402
- // This matches Clang, which also enables it since Clang 13.
403
-
404
- // FIXME: There are some perf issues with the new pass manager
405
- // when targeting s390x, so it is temporarily disabled for that
406
- // arch, see https://github.com/rust-lang/rust/issues/89609
401
+ // The new pass manager is causing significant performance issues such as #91128, and is
402
+ // therefore disabled in stable versions of rustc by default.
407
403
config
408
404
. new_llvm_pass_manager
409
- . unwrap_or_else ( || cgcx . target_arch != "s390x" && llvm_util :: get_version ( ) >= ( 13 , 0 , 0 ) )
405
+ . unwrap_or ( false )
410
406
}
411
407
412
408
pub ( crate ) unsafe fn optimize_with_new_llvm_pass_manager (
You can’t perform that action at this time.
0 commit comments