Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate copies when initializing a local from a temporary #600

Closed
pcwalton opened this issue Jun 30, 2011 · 1 comment
Closed

Eliminate copies when initializing a local from a temporary #600

pcwalton opened this issue Jun 30, 2011 · 1 comment
Labels
I-slow Issue: Problems and improvements with respect to performance of generated code.

Comments

@pcwalton
Copy link
Contributor

I don't think we need to copy the data when initializing a local from a temporary; we can just say the local is the temporary. This is analogous to constructor elision in clang: see http://clang.llvm.org/doxygen/CGExprCXX_8cpp_source.html#l00354

@marijnh
Copy link
Contributor

marijnh commented Jul 11, 2011

This was done in 3bdbf74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-slow Issue: Problems and improvements with respect to performance of generated code.
Projects
None yet
Development

No branches or pull requests

2 participants