-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
ssa: implement #[collapse_debuginfo]
#99556
Conversation
Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
(rust-highfive has picked a reviewer for you, use r? to override) |
It might make sense to add the |
8719132
to
85282ea
Compare
85282ea
to
b40a375
Compare
This comment has been minimized.
This comment has been minimized.
Thanks for the PR, @davidtwco! I've set aside some time to read up on the discussion early next week. I guess, technically, we'll need to wait for the MCP to be accepted anyway |
This comment was marked as resolved.
This comment was marked as resolved.
b40a375
to
699e90d
Compare
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
699e90d
to
0e47d53
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
0e47d53
to
3376976
Compare
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
3376976
to
8f09e8a
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Alright, I'll finally have some time to take a look at this topic! Sorry for the wait, @davidtwco. |
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.
This looks excellent! Great tests. Thanks for the PR, @davidtwco!
I left a few comments below. Looks like a tracking issue is needed for CI to pass.
☀️ Try build successful - checks-actions |
Queued 83669ee9a36dfe33adff2c816a6c19fc2b31f751 with parent 0568b0a, future comparison URL. |
Debuginfo line information for macro invocations are collapsed by default - line information are replaced by the line of the outermost expansion site. Using `-Zdebug-macros` disables this behaviour. When the `collapse_debuginfo` feature is enabled, the default behaviour is reversed so that debuginfo is not collapsed by default. In addition, the `#[collapse_debuginfo]` attribute is available and can be applied to macro definitions which will then have their line information collapsed. Signed-off-by: David Wood <david.wood@huawei.com>
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (83669ee9a36dfe33adff2c816a6c19fc2b31f751): comparison URL. Overall result: ✅ improvements - no 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. @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.
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.
Footnotes |
2169e69
to
38958aa
Compare
r? @wesleywiser |
Thanks @davidtwco! 👍 @bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (0df1ddc): 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.
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.
Footnotes |
…ywiser ssa: implement `#[collapse_debuginfo]` cc rust-lang#39153 rust-lang/compiler-team#386 Debuginfo line information for macro invocations are collapsed by default - line information are replaced by the line of the outermost expansion site. Using `-Zdebug-macros` disables this behaviour. When the `collapse_debuginfo` feature is enabled, the default behaviour is reversed so that debuginfo is not collapsed by default. In addition, the `#[collapse_debuginfo]` attribute is available and can be applied to macro definitions which will then have their line information collapsed. r? rust-lang/wg-debugging
cc #39153 rust-lang/compiler-team#386
Debuginfo line information for macro invocations are collapsed by default - line information are replaced by the line of the outermost expansion site. Using
-Zdebug-macros
disables this behaviour.When the
collapse_debuginfo
feature is enabled, the default behaviour is reversed so that debuginfo is not collapsed by default. In addition, the#[collapse_debuginfo]
attribute is available and can be applied to macro definitions which will then have their line information collapsed.r? rust-lang/wg-debugging