Merge the intrinsic and user tests for select_unpredictable#135112
Merge the intrinsic and user tests for select_unpredictable#135112bors merged 2 commits intorust-lang:masterfrom
select_unpredictable#135112Conversation
[1] mentions that having a single test with `-Zmerge-functions=disabled` is preferable to having two separate tests. Apply that to the new `select_unpredicatble` test here. [1]: rust-lang#133964 (comment)
the8472
left a comment
There was a problem hiding this comment.
The change itself is fine, but one of the existing tests looks strange
| // CHECK-LABEL: define{{.*}} @test_zst2 | ||
| p.select_unpredictable(a, b) |
There was a problem hiding this comment.
this doesn't seem to test anything, just that the function exists, not what it does.
There was a problem hiding this comment.
I assume this was just intended to verify that no select is emitted, so I added a commit to assert the function body is empty.
For ZSTs there is no selection that needs to take place, so assert that no `select` statement is emitted.
c36a09c to
74d2d4b
Compare
|
@bors r+ |
…e-test, r=the8472 Merge the intrinsic and user tests for `select_unpredictable` [1] mentions that having a single test with `-Zmerge-functions=disabled` is preferable to having two separate tests. Apply that to the new `select_unpredictable` test here. [1]: rust-lang#133964 (comment)
|
💔 Test failed - checks-actions |
|
A job failed! Check out the build log: (web) (plain) Click to see the possible cause of the failure (guessed by this bot) |
@bors retry |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (243d2ca): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary -0.9%, secondary -2.2%)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 -4.1%)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 sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 764.087s -> 763.649s (-0.06%) |
1 mentions that having a single test with
-Zmerge-functions=disabledis preferable to having two separate tests. Apply that to the newselect_unpredictabletest here.r? @the8472