-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Use unstable_target_features
when checking inline assembly
#114467
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
Conversation
This is necessary to properly validate register classes even when the relevant target feature name is still unstable.
r? @b-naber (rustbot has picked a reviewer for you, use r? to override) |
Some changes occurred in compiler/rustc_codegen_gcc cc @antoyo |
Is there a test for this? Or an issue to link? |
This was mostly caught by checking that asm consistently uses The new form is "more correct" since it matches other uses of target features for inline asm checking, but I couldn't figure out an example of where this actually makes a difference in codegen. |
Does seem reasonable to me, but I'm not sure I fully understand the implications of this change. r? @oli-obk mabye? |
Could not assign reviewer from: |
r? compiler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great if we could add a test for this, but this has been open a while and is a very small change so I'll approve.
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (c1699a7): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
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: 632.523s -> 633.856s (0.21%) |
…idtwco Use `unstable_target_features` when checking inline assembly This is necessary to properly validate register classes even when the relevant target feature name is still unstable.
This is necessary to properly validate register classes even when the relevant target feature name is still unstable.