Regeneralize the "-1 for None" change - #160376
Conversation
This comment has been minimized.
This comment has been minimized.
71d4b14 to
c568872
Compare
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
Regeneralize the "-1 for None" change try-job: aarch64*llvm-21*
This comment was marked as outdated.
This comment was marked as outdated.
c568872 to
7ca10fc
Compare
This comment has been minimized.
This comment has been minimized.
|
:/
|
This comment has been minimized.
This comment has been minimized.
7ca10fc to
0e8bca9
Compare
This comment has been minimized.
This comment has been minimized.
|
@bors try jobs=aarch64llvm-21 |
This comment has been minimized.
This comment has been minimized.
Regeneralize the "-1 for None" change try-job: aarch64*llvm-21*
This comment has been minimized.
This comment has been minimized.
|
💔 Test for 84c2f57 failed: CI. Failed jobs:
|
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Regeneralize the "-1 for None" change
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (99c49b3): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never rustc-perf 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 3.9%, secondary 26.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -3.0%, secondary 16.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.1%, secondary -0.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 456.607s -> 458.361s (0.38%) |
0e8bca9 to
5cb4249
Compare
Not planning on un-drafting this until after #158734 lands.
The "prefer the smaller magnitude" change (#155473) had been applied pretty narrowly: just to option-like niches and just to non-bool-like values. But now that llvm/llvm-project#208611 has been fixed, let's apply it more generally.
In doing so I ended up pretty substantially restructuring the function. I also greatly expanded the comments and added unit tests for it so it's easier to exercise all the paths (and much quicker than rebuilding all of rustc). I made sure to keep the previous "try to keep zero available for None" cleverness, however.
Or, if you prefer, this is contradicting the old comment in the code that
🙂