Post-monomorphization MIR optimizations #66969
Labels
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
A-mir-opt
Area: MIR optimizations
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
C-optimization
Category: An issue highlighting optimization opportunities or PRs implementing such
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
See #44285
Currently, all MIR optimizations are run before we perform monomorphization. This causes us to miss a number of optimization opportunities:
Copy
,!Drop
) that affect code generation (see Suboptimal invoke-related codegen for default trait impls #43150 (comment))The text was updated successfully, but these errors were encountered: