-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Pass alloc-variant-zeroed
to LLVM
#144086
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
base: master
Are you sure you want to change the base?
Conversation
☔ The latest upstream changes (presumably #144249) made this pull request unmergeable. Please resolve the merge conflicts. |
a3712ef
to
4b8de0d
Compare
r? @fee1-dead rustbot has assigned @fee1-dead. Use |
r? compiler edit: oops I guess that's automatic 😅 |
4b8de0d
to
5cf5610
Compare
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Pass `alloc-variant-zeroed` to LLVM
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
💔 Test for f993fda failed: CI. Failed jobs:
|
I think the alloc symbols are mangled nowadays, so we need to pass the symbols with the proper mangling. |
5cf5610
to
3e9316a
Compare
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Pass `alloc-variant-zeroed` to LLVM
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (2217f3f): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 0.7%, secondary 0.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 13.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.1%, secondary 0.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 468.291s -> 469.62s (0.28%) |
Hmm, I'm surprised at the impact here, given that there isn't a hugely significant amount of work done on LLVM or Rust's side. Maybe this just causes the optimisation to fire much more often and/or the folding allows further optimisations |
Makes use of llvm/llvm-project#138299 (once we pull in a version of LLVM with this attribute).
Unfortunately also requires llvm/llvm-project#149336 to work.Closes #104847