Repository navigation
Conversation
Member
Author
|
LLM disclosure: LLMs were used to generate the boilerplate for the MIR tests, but each test was manually reviewed and adjusted before committing. LLMs were also used to audit this pass against the rest of the compiler MIR transforms and Miri semantics. |
Amanieu
force-pushed
the
move-elimination/move-elimination
branch
from
September 26, 2026 01:05
cdda80c to
3375722
Compare
This was referenced Sep 26, 2026
Amanieu
force-pushed
the
move-elimination/move-elimination
branch
from
September 30, 2026 12:49
3375722 to
9530f82
Compare
Amanieu
force-pushed
the
move-elimination/move-elimination
branch
from
September 30, 2026 13:03
9530f82 to
e61dd0d
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on #163336 and #163337
This PR implements the
MoveEliminationpass from rust-lang/rfcs#3943.This pass uses the analysis results from
PreciseLivenessto unify locals that are related by an assignment. This also includes an alias-fixup pass which is needed because some rvalues don't allow sources to overlap with the destination place.The pass is only enabled under
-Zmir-move-elimination. This flag also disablesDestinationPropagation, which is superseded by the new pass.r? tmiasko