Skip to content

Re-add call site inlining attributes#156849

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
saethlin:test-call-site-inline-attributes
May 24, 2026
Merged

Re-add call site inlining attributes#156849
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
saethlin:test-call-site-inline-attributes

Conversation

@saethlin
Copy link
Copy Markdown
Member

@saethlin saethlin commented May 23, 2026

It is very odd that we are blindly setting the call site attributes to the same as the definition, because I think the point of the call site attributes is to differentiate between calls. Probably worth looking into later, but for now I think we should just be undoing the change we made by mistake.

This fixes the accidental regression from #156242

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 23, 2026
@saethlin
Copy link
Copy Markdown
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label May 23, 2026
rust-bors Bot pushed a commit that referenced this pull request May 23, 2026
…<try>

Re-add call site inlining attributes
@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 23, 2026

☀️ Try build successful (CI)
Build commit: fe957f6 (fe957f683d45caec986ad1ecb6eece99c1564726, parent: 54333ff079780f803f65dcee30c544050b35f544)

@rust-timer

This comment has been minimized.

Copy link
Copy Markdown
Member

@RalfJung RalfJung May 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(for when this leaves draft status) It'd probably be good to also add a comment here giving some context :)

View changes since the review

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a little comment. Wasn't sure if I wanted to say "this is a regression test for X"

@rust-timer
Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (fe957f6): 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 @rustbot label: +perf-regression-triaged. If not, fix the regressions and do another perf run. Neutral or positive results will clear the label automatically.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +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.4% [0.3%, 0.4%] 2
Regressions ❌
(secondary)
0.2% [0.2%, 0.2%] 6
Improvements ✅
(primary)
-0.3% [-0.7%, -0.2%] 68
Improvements ✅
(secondary)
-0.3% [-1.5%, -0.2%] 36
All ❌✅ (primary) -0.3% [-0.7%, 0.4%] 70

Max RSS (memory usage)

Results (primary 2.1%, secondary 0.4%)

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

mean range count
Regressions ❌
(primary)
5.6% [2.0%, 8.6%] 3
Regressions ❌
(secondary)
2.1% [1.7%, 2.5%] 2
Improvements ✅
(primary)
-8.4% [-8.4%, -8.4%] 1
Improvements ✅
(secondary)
-3.0% [-3.0%, -3.0%] 1
All ❌✅ (primary) 2.1% [-8.4%, 8.6%] 4

Cycles

This perf run didn't have relevant results for this metric.

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.0% [0.0%, 0.0%] 4
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.0% [0.0%, 0.0%] 4

Bootstrap: 510.282s -> 511.641s (0.27%)
Artifact size: 400.55 MiB -> 400.59 MiB (0.01%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels May 23, 2026
@saethlin saethlin force-pushed the test-call-site-inline-attributes branch from 985004c to adbf6f5 Compare May 23, 2026 20:49
@saethlin
Copy link
Copy Markdown
Member Author

r? dianqk

@saethlin saethlin marked this pull request as ready for review May 23, 2026 20:49
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 23, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label May 23, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 23, 2026

r? @JohnTitor

rustbot has assigned @JohnTitor.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 73 candidates
  • Random selection from 18 candidates

@saethlin
Copy link
Copy Markdown
Member Author

saethlin commented May 23, 2026

Also I think it is very odd that we are blindly setting the call site attributes to the same as the definition, because I think the point of the call site attributes is to differentiate between calls. Probably worth looking into later, but for now I think we should just be fixing the accidental change.

Copy link
Copy Markdown
Member

@dianqk dianqk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dianqk
Copy link
Copy Markdown
Member

dianqk commented May 24, 2026

@bors r+

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 24, 2026

📌 Commit adbf6f5 has been approved by dianqk

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 May 24, 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 May 24, 2026
@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 24, 2026

☀️ Test successful - CI
Approved by: dianqk
Duration: 3h 15m
Pushing 1d59f66 to main...

@rust-bors rust-bors Bot merged commit 1d59f66 into rust-lang:main May 24, 2026
12 checks passed
@rustbot rustbot added this to the 1.98.0 milestone May 24, 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 a06c1ca (parent) -> 1d59f66 (this PR)

Test differences

Show 5 test diffs

Stage 1

  • [codegen] tests/codegen-llvm/call-site-inline-attributes.rs: [missing] -> pass (J0)

Stage 2

  • [codegen] tests/codegen-llvm/call-site-inline-attributes.rs: [missing] -> pass (J1)

Additionally, 3 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 1d59f669f9c699b982f112ebbc81e8b1eb550d68 --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. i686-msvc-1: 1h 40m -> 2h 51m (+70.4%)
  2. x86_64-msvc-ext3: 1h 11m -> 1h 52m (+57.9%)
  3. i686-gnu-nopt-2: 1h 44m -> 2h 19m (+34.0%)
  4. x86_64-gnu-gcc: 48m 18s -> 1h 4m (+33.6%)
  5. x86_64-gnu-llvm-22-2: 1h 38m -> 1h 10m (-27.7%)
  6. x86_64-msvc-1: 2h 3m -> 2h 34m (+25.4%)
  7. i686-msvc-2: 1h 39m -> 2h 3m (+24.6%)
  8. dist-i686-linux: 1h 48m -> 1h 24m (-22.2%)
  9. dist-aarch64-apple: 2h 5m -> 1h 38m (-21.5%)
  10. x86_64-gnu-llvm-22-1: 1h 7m -> 53m 28s (-21.1%)
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
Collaborator

Finished benchmarking commit (1d59f66): comparison URL.

Overall result: ❌✅ regressions and improvements - please read:

Our benchmarks found a performance regression caused by this PR.
This might be an actual regression, but it can also be just noise.

Next Steps:

  • If the regression was expected or you think it can be justified,
    please write a comment with sufficient written justification, and add
    @rustbot label: +perf-regression-triaged to it, to mark the regression as triaged.
  • If you think that you know of a way to resolve the regression, try to create
    a new PR with a fix for the regression.
  • If you do not understand the regression or you think that it is just noise,
    you can ask the @rust-lang/wg-compiler-performance working group for help (members of this group
    were already notified of this PR).

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

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.3% [0.3%, 0.4%] 2
Regressions ❌
(secondary)
0.2% [0.2%, 0.2%] 8
Improvements ✅
(primary)
-0.3% [-0.4%, -0.2%] 66
Improvements ✅
(secondary)
-0.3% [-0.5%, -0.2%] 42
All ❌✅ (primary) -0.3% [-0.4%, 0.4%] 68

Max RSS (memory usage)

Results (primary -3.1%, secondary 0.4%)

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.0% [3.6%, 6.3%] 2
Improvements ✅
(primary)
-3.1% [-3.1%, -3.1%] 1
Improvements ✅
(secondary)
-4.1% [-6.2%, -2.1%] 2
All ❌✅ (primary) -3.1% [-3.1%, -3.1%] 1

Cycles

Results (primary 0.2%, secondary 2.1%)

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

mean range count
Regressions ❌
(primary)
5.3% [5.3%, 5.3%] 1
Regressions ❌
(secondary)
2.1% [2.1%, 2.1%] 1
Improvements ✅
(primary)
-2.4% [-2.4%, -2.4%] 2
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.2% [-2.4%, 5.3%] 3

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 511.447s -> 510.511s (-0.18%)
Artifact size: 400.68 MiB -> 400.71 MiB (0.01%)

@saethlin saethlin deleted the test-call-site-inline-attributes branch May 24, 2026 17:11
@saethlin
Copy link
Copy Markdown
Member Author

@rustbot label: +perf-regression-triaged

Perf impact is the inverse of the PR linked in the description, within typical jitter. The net effect of the two PRs is nothing.

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. 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.

7 participants