-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Enable -disable-i2p-p2i-opt flag #147272
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?
Enable -disable-i2p-p2i-opt flag #147272
Conversation
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Enable -disable-i2p-p2i-opt flag
This comment has been minimized.
This comment has been minimized.
// CHECK-LABEL: @get_len | ||
// CHECK-NEXT: start: | ||
// CHECK-NEXT: ; call __rustc::__rust_no_alloc_shim_is_unstable_v2 | ||
// CHECK-NEXT: tail call void @_R{{.+}}__rust_no_alloc_shim_is_unstable_v2() | ||
// CHECK-NEXT: ret i{{[0-9]+}} 3 | ||
// CHECK: ret i{{[0-9]+}} 3 |
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.
I think the cause of the ptrtoint/inttoptr casts in this case is SROA on something like this: https://llvm.godbolt.org/z/576Gb1fEx
Ideally this would not produce any casts (there are uses with different types, but those uses are disjoint), but if it does it's probably better to chose ptr
as the common type, as ptrtoint(inttoptr) can be elided, unlike the reverse.
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.
as ptrtoint(inttoptr) can be elided, unlike the reverse.
Are you sure that can be elided? It has the side effect of exposing the original address. I feel like you'd need to also prove that nobody knows about that address, which seems impossible?
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.
ptrtoint
will expose the provenance of the pointer returned by inttoptr
. However, inttoptr
can only return a previously exposed provenance. As such, ptrtoint
is exposing a previously exposed provenance, and the second expose can be elided.
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (cc94b4f): 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 -1.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeResults (primary -0.2%, secondary -0.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 470.352s -> 470.75s (0.08%) |
For perf test.
r? @ghost