Skip to content

Describe lifetime of call argument temporaries passed indirectly #138489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2025

Conversation

tmiasko
Copy link
Contributor

@tmiasko tmiasko commented Mar 14, 2025

Fixes #132014.

@rustbot
Copy link
Collaborator

rustbot commented Mar 14, 2025

r? @oli-obk

rustbot has assigned @oli-obk.
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

@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 Mar 14, 2025
@rustbot
Copy link
Collaborator

rustbot commented Mar 14, 2025

Some changes occurred in compiler/rustc_codegen_ssa

cc @WaffleLapkin

@tmiasko tmiasko force-pushed the call-tmps-lifetime branch from 5e8a92c to dad5f19 Compare March 14, 2025 11:25
@tmiasko tmiasko force-pushed the call-tmps-lifetime branch from dad5f19 to 653bbb9 Compare March 22, 2025 21:23
@tmiasko
Copy link
Contributor Author

tmiasko commented Mar 22, 2025

r? codegen

@rustbot rustbot assigned workingjubilee and unassigned oli-obk Mar 22, 2025
@workingjubilee
Copy link
Member

I wonder
@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 24, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 24, 2025
Describe lifetime of call argument temporaries passed indirectly

Fixes rust-lang#132014.
@bors
Copy link
Collaborator

bors commented Mar 24, 2025

⌛ Trying commit 653bbb9 with merge 9f0b7ad...

@bors
Copy link
Collaborator

bors commented Mar 24, 2025

☀️ Try build successful - checks-actions
Build commit: 9f0b7ad (9f0b7ad5494592153b6b7b686a00930bd3b8cf6d)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (9f0b7ad): comparison URL.

Overall result: no relevant changes - no action needed

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

This benchmark run did not return any relevant results for this metric.

Cycles

Results (primary 1.8%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

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

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: missing data
Artifact size: 365.54 MiB -> 365.55 MiB (0.00%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 24, 2025
@workingjubilee
Copy link
Member

Cool. I was just checking for regressions in other cases.

@workingjubilee
Copy link
Member

err, sorry for not kicking this back properly.

@bors author

@workingjubilee
Copy link
Member

...
@rustbot author

@rustbot rustbot added 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. labels May 1, 2025
@rustbot
Copy link
Collaborator

rustbot commented May 1, 2025

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@tmiasko tmiasko force-pushed the call-tmps-lifetime branch from 653bbb9 to ed3d6c5 Compare May 9, 2025 07:05
@tmiasko
Copy link
Contributor Author

tmiasko commented May 9, 2025

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 9, 2025
@workingjubilee
Copy link
Member

Thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented May 17, 2025

📌 Commit ed3d6c5 has been approved by workingjubilee

It is now in the queue for this repository.

@bors bors 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 17, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request May 17, 2025
…gjubilee

Describe lifetime of call argument temporaries passed indirectly

Fixes rust-lang#132014.
@bors
Copy link
Collaborator

bors commented May 17, 2025

⌛ Testing commit ed3d6c5 with merge 12f3081...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented May 17, 2025

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels May 17, 2025
@tmiasko tmiasko force-pushed the call-tmps-lifetime branch from ed3d6c5 to 3b7ca28 Compare May 17, 2025 07:49
@tmiasko
Copy link
Contributor Author

tmiasko commented May 17, 2025

Configured opt-level in align-byval-alignment-mismatch test to avoid differences from bootstrap's optimize-tests option.

@workingjubilee
Copy link
Member

uff

@bors r+

@bors
Copy link
Collaborator

bors commented May 25, 2025

📌 Commit 3b7ca28 has been approved by workingjubilee

It is now in the queue for this repository.

@bors bors 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 25, 2025
@bors
Copy link
Collaborator

bors commented May 26, 2025

⌛ Testing commit 3b7ca28 with merge 46264e6...

@bors
Copy link
Collaborator

bors commented May 26, 2025

☀️ Test successful - checks-actions
Approved by: workingjubilee
Pushing 46264e6 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label May 26, 2025
@bors bors merged commit 46264e6 into rust-lang:master May 26, 2025
7 checks passed
@rustbot rustbot added this to the 1.89.0 milestone May 26, 2025
Copy link

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 9f8929f (parent) -> 46264e6 (this PR)

Test differences

Show 4 test diffs

Stage 1

  • [codegen] tests/codegen/call-tmps-lifetime.rs: [missing] -> pass (J1)
  • [codegen] tests/codegen/issues/issue-98156-const-arg-temp-lifetime.rs: pass -> [missing] (J1)

Stage 2

  • [codegen] tests/codegen/call-tmps-lifetime.rs: [missing] -> pass (J0)
  • [codegen] tests/codegen/issues/issue-98156-const-arg-temp-lifetime.rs: pass -> [missing] (J0)

Job group index

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard 46264e6dfd8f0bacae05c520b4617e054d6ef990 --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. dist-x86_64-apple: 7375.9s -> 9682.9s (31.3%)
  2. dist-armv7-linux: 6550.8s -> 5225.0s (-20.2%)
  3. aarch64-gnu-debug: 4935.0s -> 3985.5s (-19.2%)
  4. dist-apple-various: 6210.1s -> 7001.8s (12.7%)
  5. x86_64-apple-2: 4918.9s -> 5459.0s (11.0%)
  6. x86_64-apple-1: 7805.2s -> 7268.8s (-6.9%)
  7. dist-aarch64-apple: 4950.0s -> 5284.8s (6.8%)
  8. x86_64-gnu-tools: 5951.6s -> 6332.2s (6.4%)
  9. dist-various-2: 3189.1s -> 3391.1s (6.3%)
  10. aarch64-apple: 3989.5s -> 4225.7s (5.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
Collaborator

Finished benchmarking commit (46264e6): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results (secondary 1.6%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
1.6% [1.0%, 2.3%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 776.208s -> 776.159s (-0.01%)
Artifact size: 366.34 MiB -> 366.24 MiB (-0.03%)

@tmiasko tmiasko deleted the call-tmps-lifetime branch May 26, 2025 06:29
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. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

Unmerged stack slots under Windows
7 participants