-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Name LLVM anonymous constants by a hash of their contents #108446
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
This could use a perf run. |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit b897b2d with merge 42cfb62b5da9c9311876a72c252393b2f47a6904... |
☀️ Try build successful - checks-actions |
1 similar comment
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (42cfb62b5da9c9311876a72c252393b2f47a6904): comparison URL. Overall result: no relevant changes - 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 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. |
My initial suspicion was "what if two constants have different allocations but hash to the same contents", but my understanding from this thread is that @oli-obk said this is fine: https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/LLVM.20anonymous.20constants/near/337952486 r=me on the impl, but would like another confirmation so r? @oli-obk |
@bors r+ |
⌛ Testing commit b897b2d with merge 253490c9cb8b1b9486c0d8ef00a2ca80a3d5f92c... |
💔 Test failed - checks-actions |
@bors retry building llvm: could not create temporary file whilst writing archive: no more archived files |
☀️ Test successful - checks-actions |
Finished benchmarking commit (609496e): 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. |
The job Click to see the possible cause of the failure (guessed by this bot)
|
This makes the names stable between different versions of a crate unlike the
AllocId
naming, making LLVM IR comparisons withllvm-diff
more practical.