Missed optimization on array construction from fixed size byte array #67484
Labels
A-codegen
Area: Code generation
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
I-slow
Issue: Problems and improvements with respect to performance of generated code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
godbolt link: https://rust.godbolt.org/z/MNuq-K
I have two snippets which I expect they have the same assembly:
and
The non-optimal one has this output:
Which should be:
The text was updated successfully, but these errors were encountered: