Unnecessary memcpy during struct initialization #45663
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
A-mir-opt
Area: MIR optimizations
A-mir-opt-nrvo
Fixed by the Named Return Value Opt. (NRVO)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
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.
compiles to
If I drop 'l' field the copy goes away and I get:
See also https://bugs.llvm.org/show_bug.cgi?id=35134
The text was updated successfully, but these errors were encountered: