-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
cg_llvm: stop identifying ADTs in LLVM IR #114350
Conversation
Now that we use opaque pointers, ADTs can no longer be recursive, so we do not need to name them. Previously, this would be necessary if you had a struct like ```rs struct Foo(Box<Foo>, u64, u64); ``` which would be represented with something like ```ll %Foo = type { %Foo*, i64, i64 } ``` which is now just ```ll { ptr, i64, i64 } ```
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
whoops, uhh |
⌛ Trying commit 1d7f728 with merge 0c56080e7cdb00fc640662bd2954f5a58254a3f9... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (0c56080e7cdb00fc640662bd2954f5a58254a3f9): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never 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)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 sizeResultsThis 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.
Bootstrap: missing data |
Perf shows a ~1% improvement to a few opt builds, which is about what I expected. But then also a 0.5% regression to 3 doc builds. This doesn't make sense, rustdoc shouldn't be doing any codegen (I hope), and this change should not be able to impact optimizations. I suspect it is something like: changing some struct types from being named to unnamed changes module hashes during LTO, which slightly perturbs some code in rustdoc, making it slower if we're unlucky. Cachegrind diff:
Looks like some inlining decision changes near |
Rustdoc has been known to evince severe regressions merely from adding library API before, so. |
Hmm, yeah, looking at the three doc builds that regressed, they've been jumping up and down by the same magnitude seen in this PR: webrender-2022-doc ucd-doc match-stress-doc I think, then, I'm justified in doing |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (73dc6f0): comparison URL. Overall result: ✅ 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)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.
CyclesResultsThis 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.
Binary sizeResultsThis 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.
Bootstrap: 649.336s -> 647.034s (-0.35%) |
This is an extension of #94107. It may be a minor perf win.
Fixes #96242.
Now that we use opaque pointers, ADTs can no longer be recursive, so we
do not need to name them. Previously, this would be necessary if you had
a struct like
which would be represented with something like
which is now just
r? @tmiasko