Repository navigation
Rollup of 3 pull requests - #162815
Rollup of 3 pull requests#162815
Conversation
A union with two scalar fields, even if they overlap exactly, is not a trivial aggregate
GVN only checked whether the portion of allocation referred by `MPlaceTy` contains provenance, but we then intern the whole allocation. This causes ICE if the unchecked part contains provenance. This commit extends the check to the whole allocation. Also, removes a check for unsized local in `try_as_evaluated_constant` which seems to duplicate with the one in `op_to_prop_const`.
We only checked the provenance for a part of the allocation that will be interned. Fixed by adding a method under `InterpCx` to check the whole allocation.
Fix ICE in GVN that interns allocation containing provenance While trying to intern an allocation into the global memory, GVN only checked if the portion of the allocation referred by the `MPlaceTy` from const eval contains provenance, but then it interned the whole allocation instead of just that portion. This causes ICE if the unchecked part contains provenance, as in rust-lang#160750. This PR extends the check to the whole allocation so that we won't accidentally intern an allocation with provenance. Also, the check for unsized local in `try_as_evaluated_constant` seems to be redundant with the one in `op_to_prop_const`, this PR removes it.
…richton wasm: correctly implement `union` trivial aggregates A union with two scalar fields, even if they overlap exactly, is not a trivial aggregate, based on the implementation in `clang`: https://github.com/llvm/llvm-project/blob/e78970f80f1041de8948cb0b665a9aaae682f6c6/clang/lib/CodeGen/ABIInfoImpl.cpp#L338-L402 It never explicitly considers unions, but essentially views them as records. The `clang` implementation is a plausible interpretation of the specification (though I'd like it to be a bit clearer): https://github.com/WebAssembly/tool-conventions/blob/83e5d715d0c18aee51e2d5ae9434f22d67b6e905/BasicCABI.md#function-arguments-and-return-values > [2] Any struct or union that recursively (including through nested structs, unions, and arrays) contains just a single scalar value and is not specified to have greater than natural alignment. We previously got this wrong. I also don't think this was really tested very well, so I added a bunch of test for various cases. This change moves away from using the `homogeneous_aggregate` method, which is convenient because it is a bit broken and now we don't have to consider wasm when we fix that. I've validated this against `clang` with abi-cafe. r? alexcrichton
…sume-predicate-obligation, r=mejrs cleanup: Move consumed predicate obligations into recursive evaluation
This comment has been minimized.
This comment has been minimized.
Rollup of 3 pull requests try-job: dist-various-1 try-job: test-various try-job: test-x86_64-gnu-aux try-job: test-x86_64-gnu-llvm-21-3 try-job: test-x86_64-msvc-1 try-job: test-aarch64-apple-1 try-job: test-aarch64-apple-2 try-job: test-x86_64-mingw-1 try-job: test-i686-msvc try-job: test-armhf-gnu
This comment has been minimized.
This comment has been minimized.
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 1936d44 (parent) -> 0da8aed (this PR) Test differencesShow 9 test diffsStage 1
Stage 2
Additionally, 2 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 0da8aedb7dc2e1b9fe7096050b7e215c2a4b451b --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
📌 Perf builds for each rolled up PR:
parent commit: 1936d44457 In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
|
Finished benchmarking commit (0da8aed): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (secondary 2.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -1.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.0%, secondary -0.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 495.925s -> 494.609s (-0.27%) |
Successful merges:
uniontrivial aggregates #162806 (wasm: correctly implementuniontrivial aggregates)r? @ghost
Create a similar rollup