Useless copies of alignment padding #56297
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-slow
Issue: Problems and improvements with respect to performance of generated code.
See the following extreme test-case:
This is what godbolt says rust stable does with it with -O:
That is, it allocates 1024 bytes (expected), writes
42
directly at the allocated location, and then proceeds to copy 1016 (uninitialized) bytes from the stack.The text was updated successfully, but these errors were encountered: