Skip to content

Enable DestinationPropagation by default.#115105

Merged
bors merged 1 commit intorust-lang:masterfrom
cjgillot:dest-prop-default
May 30, 2024
Merged

Enable DestinationPropagation by default.#115105
bors merged 1 commit intorust-lang:masterfrom
cjgillot:dest-prop-default

Conversation

@cjgillot
Copy link
Copy Markdown
Contributor

@cjgillot cjgillot commented Aug 22, 2023

Based on #115291.

This PR proposes to enable the destination propagation pass by default.
This pass is meant to reduce the amount of copies present in MIR.

At the same time, this PR removes the RenameReturnPlace pass, as it is currently unsound.
DestinationPropagation is not limited to _0, but does not handle borrowed locals.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-mir-opt Area: MIR optimizations merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. 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.