Skip to content

cg_gcc subtree sync - #164195

Merged
rust-bors[bot] merged 37 commits into
rust-lang:mainfrom
GuillaumeGomez:subtree-sync-2026-10-12
Oct 12, 2026
Merged

rust-bors[bot] merged 37 commits into
rust-lang:mainfrom
GuillaumeGomez:subtree-sync-2026-10-12

Conversation

@GuillaumeGomez

Copy link
Copy Markdown
Member

cc @antoyo

r? ghost

bjorn3 and others added 30 commits September 24, 2026 11:58
This prevents nonsensical combinations like unsized+on_stack and forces
all users to explicitly handle the difference between sized and unsized
arguments. In a couple of places unsized arguments were handled
incorrectly if they would ever manage to reach that code.
We should not disable the pattern in MatchBranchSimplification.
The two forms exhaustive match and cast are equivalent, but the cast is better represented in MIR: no branches, only one statement.

AFAIK, LLVM does not handle multiple disjoint intervals well.
As an workaround, the patch emits `assume(ctpop(val) == 1)` to tell LLVM that
the discriminant is a power of two.
… r=saethlin

codegen: tell LLVM that the discriminant is a power of two

Fixes rust-lang#162513.

We should not disable the pattern in MatchBranchSimplification. The two forms exhaustive match and cast are equivalent, but the cast is better represented in MIR: no branches, only one statement.

AFAIK, LLVM does not handle multiple disjoint intervals well. As an workaround, the patch emits `assume(ctpop(val) == 1)` to tell LLVM that the discriminant is a power of two.

LLM disclosure: search the codebase and fix grammer.
… r=beetrees

Split PassMode::IndirectUnsized out of PassMode::Indirect

This prevents nonsensical combinations like unsized+on_stack and forces all users to explicitly handle the difference between sized and unsized arguments. In a couple of places unsized arguments were handled incorrectly if they would ever manage to reach that code.
…-possible, r=adwinwhite

replace `fully_monomorphized` with `cx.typing_env()`

cc rust-lang#163724

reasoning about whether a given `TypingEnv` is correct is non-trivial, so if we've got a context which already provides the correct `TypingEnv`, using that is easier.
@rustbot

rustbot commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

rustc_codegen_gcc is developed in its own repository. If possible, consider making this change to rust-lang/rustc_codegen_gcc instead.

cc @antoyo

@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 Oct 12, 2026
@GuillaumeGomez

Copy link
Copy Markdown
Member Author

Still rollup=never for josh.

@bors r+ p=1 rollup=never

@rust-bors

rust-bors Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 2aff4c4 has been tentatively approved by GuillaumeGomez

It will be put into the queue for this repository once PR CI succeeds.

@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. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 12, 2026
@rust-bors

rust-bors Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

❌ Commit 2aff4c4 has been unapproved due to PR CI failure. Reapprove it with @bors r+ force if you want to ignore the failure.

@rustbot

rustbot commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

⚠️ Warning ⚠️

@GuillaumeGomez

Copy link
Copy Markdown
Member Author

@bors r+ p=1 rollup=never

@rust-bors

rust-bors Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 85bb284 has been tentatively approved by GuillaumeGomez

It will be put into the queue for this repository once PR CI succeeds.

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 12, 2026
@rust-bors

This comment has been minimized.

@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 Oct 12, 2026
@rust-bors

rust-bors Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: GuillaumeGomez
Duration: 2h 53m 16s
Pushing 0093837 to main...

@rust-bors
rust-bors Bot merged commit 0093837 into rust-lang:main Oct 12, 2026
15 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Oct 12, 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 34ca1df (parent) -> 0093837 (this PR)

Test differences

Show 3 test diffs

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

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard 0093837afdf14ec7069c81da19cd51ed7d3476d9 --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: 54m 11s -> 1h 25m (+57.0%)
  2. dist-riscv64-linux-musl: 1h 3m -> 1h 36m (+53.1%)
  3. dist-powerpc64le-linux-gnu: 1h 7m -> 1h 41m (+50.3%)
  4. test-x86_64-gnu-stable: 1h 39m -> 2h 26m (+47.4%)
  5. test-x86_64-gnu-miri: 1h 24m -> 45m 12s (-46.8%)
  6. dist-aarch64-apple: 1h 35m -> 2h 18m (+45.7%)
  7. test-x86_64-msvc-ext2: 1h 44m -> 1h 1m (-41.3%)
  8. test-x86_64-gnu-debug: 1h 27m -> 2h 1m (+39.0%)
  9. test-x86_64-gnu-stdlib-semver-check: 17m 5s -> 10m 29s (-38.6%)
  10. dist-loongarch64-musl: 1h 33m -> 2h 9m (+37.9%)
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-timer

Copy link
Copy Markdown

Finished benchmarking commit (0093837): 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.4% [-0.6%, -0.1%] 4
Improvements ✅
(secondary)
-0.4% [-0.7%, -0.1%] 39
All ❌✅ (primary) -0.4% [-0.6%, -0.1%] 4

Max RSS (memory usage)

Results (primary -6.2%, secondary -4.5%)

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)
-6.2% [-6.2%, -6.2%] 1
Improvements ✅
(secondary)
-4.5% [-4.5%, -4.5%] 1
All ❌✅ (primary) -6.2% [-6.2%, -6.2%] 1

Cycles

Results (primary -2.0%, secondary 5.8%)

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)
5.8% [5.8%, 5.8%] 1
Improvements ✅
(primary)
-2.0% [-2.0%, -2.0%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -2.0% [-2.0%, -2.0%] 1

Binary size

Results (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
Improvements ✅
(secondary)
-0.0% [-0.0%, -0.0%] 3
All ❌✅ (primary) - - 0

Bootstrap: 489.314s -> 488.816s (-0.10%)
Artifact size: 406.66 MiB -> 406.86 MiB (0.05%)

@GuillaumeGomez
GuillaumeGomez deleted the subtree-sync-2026-10-12 branch October 12, 2026 18:53
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. 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.

8 participants