read_via_copy: don't prematurely optimize away the read#115531
read_via_copy: don't prematurely optimize away the read#115531bors merged 1 commit intorust-lang:masterfrom
Conversation
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
|
Something is broken with CI, everything fails with |
This comment has been minimized.
This comment has been minimized.
05af664 to
7093903
Compare
| //~^ ERROR evaluation of constant value failed | ||
| //~| constructing invalid value | ||
|
|
||
|
|
There was a problem hiding this comment.
hyper-nit: extra blank lines in here
|
FYI @WaffleLapkin, who sortof-suggested removing the assignment in #109035 (comment) But this PR is a good answer for why it shouldn't be removed, so the change LGTM. @bors r+ |
|
⌛ Testing commit 7093903 with merge ac542f7fbb011f3811c032e3b3faa0642161a126... |
|
💔 Test failed - checks-actions |
|
@bors retry GitHub checkout failed |
|
A job failed! Check out the build log: (web) (plain) Click to see the possible cause of the failure (guessed by this bot) |
|
⌛ Testing commit 7093903 with merge c505b8b95e28731a9e5fac10c2dd2c959e6b80d3... |
|
A job failed! Check out the build log: (web) (plain) Click to see the possible cause of the failure (guessed by this bot) |
|
💔 Test failed - checks-actions |
|
@bors retry GitHub checkout issue |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (626a6ab): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression 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)This benchmark run did not return any relevant results for this metric. 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: 628.296s -> 627.535s (-0.12%) |
Oops 😅 |
Always do the read to ensure consistent UB error messages in const-eval/Miri.
r? @scottmcm