Skip to content

Re-add call site inlining attributes#156849

Open
saethlin wants to merge 1 commit into
rust-lang:mainfrom
saethlin:test-call-site-inline-attributes
Open

Re-add call site inlining attributes#156849
saethlin wants to merge 1 commit into
rust-lang:mainfrom
saethlin:test-call-site-inline-attributes

Conversation

@saethlin
Copy link
Copy Markdown
Member

This clearly needs some refactoring but for now I just want to see if this inverts the perf change 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.

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. perf-regression Performance regression. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants