-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch PLT default to "yes" for all targets except x86_64. #581
Comments
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed. cc @rust-lang/compiler @rust-lang/compiler-contributors |
I prefer to revert the behavior toggle part of the original patch and default to I as an llvm-project contributor was really annoyed by the comments to my legitimate commits caused by rustc choices. |
@rustbot second |
@rustbot label -final-comment-period +major-change-accepted |
Per the discussion in rust-lang#106380 plt=no isn't a great default, and rust-lang/compiler-team#581 decided that the default should be PLT=yes for everything except x86_64. Not everyone agrees about the x86_64 part of this change, but this at least is an improvement in the state of things without changing the x86_64 situation, so I've attempted making this change in the name of not letting the perfect be the enemy of the good.
rustc_session: default to -Z plt=yes on non-x86_64 Per the discussion in rust-lang#106380 plt=no isn't a great default, and rust-lang/compiler-team#581 decided that the default should be PLT=yes for everything except x86_64. Not everyone agrees about the x86_64 part of this change, but this at least is an improvement in the state of things without changing the x86_64 situation, so I've attempted making this change in the name of not letting the perfect be the enemy of the good. Please let me know if I've messed this up somehow - I'm not wholly confident I got this right. r? `@nikic`
Proposal
Back in 2018 with PR rust-lang/rust#54592, Rust changed to disable the procedure linkage table (PLT) by default, and the only way to opt back into enabling the PLT was via an unstable nightly-only debug flag,
-Zplt=yes
.According to some experts on the instruction encodings, this is only an optimization for x86_64. As stated on PR rust-lang/rust#106380 (which proposed turning the global default to enable PLT for all targets, aka "default to
-Zplt=yes
"):PR rust-lang/rust#54592 only did its analysis against x86_64 performance, and we did find that disable PLT was a win there. So, if we are going to change the PLT default, we probably should ensure that x86_64 keeps the existing behavior.
(Spawned off of rust-lang/rust#106380 (comment) , where @nikic has provided an deeper analysis, that recommends the approach described in this MCP.)
Mentors or Reviewers
I would be willing to mentor/review this work.
Process
The main points of the Major Change Process are as follows:
@rustbot second
.-C flag
, then full team check-off is required.@rfcbot fcp merge
on either the MCP or the PR.You can read more about Major Change Proposals on forge.
Comments
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.
The text was updated successfully, but these errors were encountered: