Const Prop does not finish propagation into user defined variables #66638
Labels
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
I-compiletime
Issue: Problems and improvements with respect to compile times.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The const prop pass handles propagation into temporaries correctly but doesn't propagate temporaries into user defined variables.
example
currently compiles to the following MIR:
but should ideally compile to:
The text was updated successfully, but these errors were encountered: