Disable new pass manager by default for the s390x targets.#89662
Closed
hkratz wants to merge 1 commit intorust-lang:masterfrom
Closed
Disable new pass manager by default for the s390x targets.#89662hkratz wants to merge 1 commit intorust-lang:masterfrom
hkratz wants to merge 1 commit intorust-lang:masterfrom
Conversation
Contributor
|
r? @nagisa (rust-highfive has picked a reviewer for you, use r? to override) |
Contributor
|
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Contributor
Author
|
Closing in favor of #89666. I did not realize that adding a field to the target spec would make it public contract. As this is only meant as a stop-gap measure exposing that is not a good idea. |
Member
|
The target specification schema isn't considered a stable interface, but this seems like a bug that we'd like to fix either way so having an option to change this through a target seems unnecessary. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With this change target specifications can opt in to provide a default setting for using the new LLVM pass manager via
TargetOptions::new_llvm_pass_manager. In this PR it is only set toSome(false)for s390x, disabling the new pass manager due to some major performance problems with it (see #89609).If no default is specified
rustc_codegen_llvm::back::write::should_use_new_llvm_pass_manager()continues to enable the new pass manager iff the LLVM version is 13 or higher.The command line option
-Z new-llvm-pass-manager=(yes|no)continues to override default values and should_use_new_llvm_pass_manager() logic.This is meant as a temporary measure until the problems with s390x are fixed.