Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTry not to copy outgoing arguments #23657
Comments
pcwalton
added
I-slow
A-codegen
labels
Mar 24, 2015
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Already playing with some patch that prefers to always zero after drop to 2015-03-24 19:48 GMT+01:00 Ryan Prichard notifications@github.com:
|
This comment has been minimized.
This comment has been minimized.
|
Similar to #21487 |
This comment has been minimized.
This comment has been minimized.
|
cc me |
This comment has been minimized.
This comment has been minimized.
|
Closing. This is old and pretty vague. New concrete test cases welcome. |
brson
closed this
Dec 1, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pcwalton commentedMar 24, 2015
I see stuff like this in Servo's disassembly for arguments that are moved:
There's generally no need to copy by-move arguments. They should not be by-value at the LLVM level but should instead be by-pointer. Essentially codegen should opportunistically treat by-value as a hypothetical
&ownfor aggregates.