-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Remove fixme about LLVM basic block naming #122567
Conversation
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Avoid naming LLVM basic blocks when `fewer_names` is true This may be a small perf win. r? `@ghost`
let name = SmallCStr::new(name); | ||
llvm::LLVMAppendBasicBlockInContext(cx.llcx, llfn, name.as_ptr()) | ||
let c_str_name; | ||
let name_ptr = if cx.tcx.sess.fewer_names() { |
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.
Isn't fewer_names
off by default, so need to revert this condition to actually test perf?
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.
No, it's always enabled under normal circumstances. It's only set to false if you pass --emit=llvm-ir
, or similar things that dump IR or assembly.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (6034f04): 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. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 669.355s -> 671.732s (0.36%) |
No effect; let's try again with the Rust side string formatting also avoided. The latest commit has some small effect locally, but I'm not sure if it'll be significant:
There simply might not be enough bbs for this to matter. |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Avoid naming LLVM basic blocks when `fewer_names` is true This may be a small perf win. r? `@ghost`
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (cc5ecf7): 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.
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 sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 670.527s -> 670.577s (0.01%) |
Avoiding the naming didn't have any meaningful perf impact.
fewer_names
is true
No measurable change, there doesn't even seem to be a trend below the noise floor. I'll just delete the fixme. r? compiler |
@bors r+ rollup |
Remove fixme about LLVM basic block naming ~This may be a small perf win.~ Originally, this PR implemented the fixme, but it didn't have any measurable perf improvement. r? `@ghost`
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#122480 (Avoid various uses of `Option<Span>` in favor of using `DUMMY_SP` in the few cases that used `None`) - rust-lang#122567 (Remove fixme about LLVM basic block naming) - rust-lang#122588 (less useless filter calls in imported_source_file) - rust-lang#122647 (add_retag: ensure box-to-raw-ptr casts are preserved for Miri) - rust-lang#122649 (Update the minimum external LLVM to 17) - rust-lang#122680 (Do not eat nested expressions' results in `MayContainYieldPoint` format args visitor) - rust-lang#122683 (add missing test: expected paren or brace in macro) - rust-lang#122689 (Add missing `try_visit` calls in visitors.) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#122567 - erikdesjardins:noname, r=oli-obk Remove fixme about LLVM basic block naming ~This may be a small perf win.~ Originally, this PR implemented the fixme, but it didn't have any measurable perf improvement. r? ``@ghost``
This may be a small perf win.Originally, this PR implemented the fixme, but it didn't have any measurable perf improvement.
r? @ghost