Try to shrink Alignment-related MIR in Layout#128918
Try to shrink Alignment-related MIR in Layout#128918scottmcm wants to merge 1 commit intorust-lang:masterfrom
Alignment-related MIR in Layout#128918Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Try to shrink `Alignment`-related MIR in `Layout` Noticed all this in <https://rust.godbolt.org/z/55Tx65v4e>: ```rust _22 = (_11.0: std::ptr::alignment::AlignmentEnum); _23 = discriminant(_22); _24 = Ge(_23, const 1_u64); _25 = Le(_23, const 9223372036854775808_u64); _26 = BitAnd(move _24, move _25); assume(move _26); _20 = _23 as usize (IntToInt); ``` So let's see if a non-`as` here works better.
|
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (688a0c0): 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)Results (primary 0.4%, secondary 2.6%)This 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.
CyclesResults (primary -1.0%)This 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 sizeResults (primary 0.0%, secondary 0.3%)This 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: 762.097s -> 760.688s (-0.18%) |
|
Note that after #128371, we should be able to remove the assume entirely. |
|
If #128371 does indeed fix this, I'd prefer that, so let's wait for that PR to be merged first. |
|
This should be closed after/if #129027 is merged, I'm marking this as blocked. |
|
Mitigated with #144389 instead |
Noticed all this in https://rust.godbolt.org/z/55Tx65v4e:
So let's see if a non-
ashere works better.