Default to disabling the new pass manager for the s390x targets.

This commit is contained in:
Hans Kratz 2021-10-08 12:10:52 +02:00
parent 44995f7afb
commit 4593d78e96
2 changed files with 13 additions and 4 deletions

View file

@ -596,7 +596,7 @@ pub(crate) fn run_pass_manager(
// tools/lto/LTOCodeGenerator.cpp
debug!("running the pass manager");
unsafe {
if write::should_use_new_llvm_pass_manager(config) {
if write::should_use_new_llvm_pass_manager(cgcx, config) {
let opt_stage = if thin { llvm::OptStage::ThinLTO } else { llvm::OptStage::FatLTO };
let opt_level = config.opt_level.unwrap_or(config::OptLevel::No);
write::optimize_with_new_llvm_pass_manager(