-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Remove misleading target feature aliases #107707
Conversation
r? @davidtwco (rustbot has picked a reviewer for you, use r? to override) |
LGTM, but I believe this needs T-lang signoff since it affects target features. However I do believe these features are still unstable so it should be fine. |
Yep, they are still unstable. |
For context for T-lang, since it might be a bit cryptic from the remarks elsewhere: There are in fact "avx512{gfni, vaes, ...}" instructions and so on, but the x86 CPU denotes that these instructions are available by signaling "both the avx512 bit and the feature bit enabled" when CPUID is queried. For each feature, it signals that "only" the "feature" instructions are available via having the feature bit enabled but the avx512 bit disabled. The exact details of how this works out sometimes varies a little from what I just said since x86 is a very... "evolved, not designed" instruction set architecture. |
Hi @calebzulawski! What's the status on this PR? I saw you got a review on the 6th of February :) |
This is waiting on T-lang sign-off. Otherwise the PR itself looks fine. |
If you want lang team signoff, we need to nominate it for lang-team discussion! See instructions here: https://lang-team.rust-lang.org/how_to/nominate.html In particular, can you author a relatively standalone paragraph explaining the question to be answered? Thanks! |
@rustbot label +I-lang-nominated When AVX512 support was initially added, these three features (GFNI, VAES, and VPCLMULQDQ) were included as AVX512 features and prefixed with the These features do provide AVX512 instructions when paired with the My previous PR added the more accurate |
@rfcbot fcp merge Discussed in @rust-lang/lang meeting. We feel good about this change, particularly since target feature gives you warnings if things are wrong. |
This comment was marked as outdated.
This comment was marked as outdated.
@rfcbot fcp cancel |
@nikomatsakis proposal cancelled. |
@rfcbot fcp merge Discussed in https://github.com/orgs/rust-lang/teams/lang meeting. We feel good about this change, particularly since target feature gives you warnings if things are wrong. |
Team member @nikomatsakis has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
@rustbot labels -S-waiting-on-team |
@rustbot labels -I-lang-nominated |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (ce5919f): comparison URL. Overall result: ❌✅ regressions and improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 644.425s -> 644.092s (-0.05%) |
Fixes #100752. This is a follow up to #103750. These aliases could not be completely removed until rust-lang/stdarch#1355 landed.
cc @Amanieu