Skip to content

Avoid unneeded work for storage removal in non-opt builds in CopyProp and GVN#155491

Open
ohadravid wants to merge 1 commit intorust-lang:mainfrom
ohadravid:faster-storage-in-copyprop-and-gvn
Open

Avoid unneeded work for storage removal in non-opt builds in CopyProp and GVN#155491
ohadravid wants to merge 1 commit intorust-lang:mainfrom
ohadravid:faster-storage-in-copyprop-and-gvn

Conversation

@ohadravid
Copy link
Copy Markdown
Contributor

@ohadravid ohadravid commented Apr 18, 2026

Fix performance regression introduced in #142531 (rust-timer comment) by only allocating local sets for the storage accounting when tcx.sess.emit_lifetime_markers().

r? saethlin

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 18, 2026

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@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 Apr 18, 2026
@ohadravid ohadravid force-pushed the faster-storage-in-copyprop-and-gvn branch from 544ea18 to bb8798b Compare April 18, 2026 16:43
for (local, &head) in ssa.copy_classes().iter_enumerated() {
if local != head {
any_replacement = true;
storage_to_remove.insert(head);
Copy link
Copy Markdown
Contributor Author

@ohadravid ohadravid Apr 18, 2026

Choose a reason for hiding this comment

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

@ohadravid ohadravid force-pushed the faster-storage-in-copyprop-and-gvn branch from bb8798b to 2389a3a Compare April 18, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants