Skip to content

Rollup of 3 pull requests - #162815

Merged
rust-bors[bot] merged 9 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-U7rQbfw
Sep 15, 2026
Merged

rust-bors[bot] merged 9 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-U7rQbfw

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

xmakro and others added 9 commits September 12, 2026 20:51
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
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Sep 15, 2026
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 15, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@bors r+ p=5

Trying commonly failed jobs
@bors try jobs=dist-various-1,test-various,test-x86_64-gnu-aux,test-x86_64-gnu-llvm-21-3,test-x86_64-msvc-1,test-aarch64-apple-1,test-aarch64-apple-2,test-x86_64-mingw-1,test-i686-msvc,test-armhf-gnu

@rust-bors

rust-bors Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 635fceb has been approved by JonathanBrouwer

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 15, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Sep 15, 2026
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
@rust-bors

This comment has been minimized.

@rust-bors

rust-bors Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 35c0047 (35c0047411728f4a4741de4c40546f9c38a78f7f)
Base parent: 5392d2f (5392d2f545c6836dc79f209bcc14ac7179dbc4f2)

@rust-bors rust-bors Bot added merged-by-bors This PR was explicitly merged by bors. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 15, 2026
@rust-bors

rust-bors Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: JonathanBrouwer
Duration: 3h 17m 24s
Pushing 0da8aed to main...

@rust-bors
rust-bors Bot merged commit 0da8aed into rust-lang:main Sep 15, 2026
15 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Sep 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor
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 differences

Show 9 test diffs

Stage 1

  • [codegen] tests/codegen-llvm/wasm-abi/singleton-scalar.rs#wasip1: [missing] -> pass (J1)
  • [codegen] tests/codegen-llvm/wasm-abi/singleton-scalar.rs#wasm: [missing] -> pass (J1)
  • [ui] tests/ui/mir/gvn-intern-ice-160750.rs: [missing] -> pass (J3)
  • [ui (polonius)] tests/ui/mir/gvn-intern-ice-160750.rs: [missing] -> pass (J4)

Stage 2

  • [ui] tests/ui/mir/gvn-intern-ice-160750.rs: [missing] -> pass (J0)
  • [codegen] tests/codegen-llvm/wasm-abi/singleton-scalar.rs#wasip1: [missing] -> pass (J2)
  • [codegen] tests/codegen-llvm/wasm-abi/singleton-scalar.rs#wasm: [missing] -> pass (J2)

Additionally, 2 doctest diffs were found. These are ignored, as they are noisy.

Job group index

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard 0da8aedb7dc2e1b9fe7096050b7e215c2a4b451b --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. test-x86_64-gnu-gcc-core-tests: 8m 23s -> 17m 39s (+110.5%)
  2. test-x86_64-gnu-parallel-frontend: 1h 11m -> 2h 5m (+75.4%)
  3. test-x86_64-gnu-stdlib-semver-check: 9m 44s -> 16m 39s (+71.1%)
  4. dist-ohos-aarch64: 57m 40s -> 1h 21m (+40.5%)
  5. dist-i686-mingw: 38m 27s -> 53m 22s (+38.8%)
  6. test-x86_64-gnu-nopt: 2h 28m -> 1h 32m (-38.0%)
  7. test-x86_64-rust-for-linux: 42m 38s -> 58m 39s (+37.6%)
  8. test-i686-gnu-nopt-2: 1h 49m -> 2h 26m (+33.2%)
  9. test-x86_64-gnu-miri: 1h 23m -> 56m 52s (-31.9%)
  10. test-x86_64-gnu-llvm-21-2: 1h 17m -> 1h 40m (+30.0%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-bors

rust-bors Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#162463 Fix ICE in GVN that interns allocation containing provenance ee36ce966242ab580d52d2a63e0c7a00a74f09c8
(link)
#162806 wasm: correctly implement union trivial aggregates 94f7789a0b9e29b5af23d37a263ae10cacaec354
(link)
#162711 cleanup: Move consumed predicate obligations into recursive… bd489b5d14d4121f719b9115d555b7d85360a5cf
(link)

parent commit: 1936d44457

In the case of a perf regression, run the following command for each PR you suspect might be the cause: @rust-timer build $SHA

@rust-timer

Copy link
Copy Markdown

Finished benchmarking commit (0da8aed): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.3% [-0.3%, -0.2%] 2
All ❌✅ (primary) - - 0

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.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
4.8% [3.3%, 7.4%] 6
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-5.1% [-7.8%, -2.3%] 2
All ❌✅ (primary) - - 0

Cycles

Results (secondary -1.1%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
8.6% [8.5%, 8.6%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-4.9% [-7.9%, -3.0%] 5
All ❌✅ (primary) - - 0

Binary size

Results (primary -0.0%, secondary -0.0%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.0% [-0.0%, -0.0%] 3
Improvements ✅
(secondary)
-0.0% [-0.0%, -0.0%] 3
All ❌✅ (primary) -0.0% [-0.0%, -0.0%] 3

Bootstrap: 495.925s -> 494.609s (-0.27%)
Artifact size: 406.90 MiB -> 406.84 MiB (-0.01%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants