Field ordering causes extra memcpy #56356
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
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.
In the following test case reduced from SmallVec:
produces
moving
capacity
to the end of the struct gives:This is surprising to me.
The text was updated successfully, but these errors were encountered: