Skip to content

[CIR][CIRGen] Call trivial assignment operators in more cases #1196

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

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

smeenai
Copy link
Collaborator

@smeenai smeenai commented Dec 3, 2024

Our previous logic here was matching CodeGen, which folds trivial
assignment operator calls into memcpys, but we want to avoid that. Note
that we still end up emitting memcpys for arrays of classes with trivial
assignment operators; #1177 tracks
fixing that.

[ghstack-poisoned]
[ghstack-poisoned]
@smeenai
Copy link
Collaborator Author

smeenai commented Dec 3, 2024

Base automatically changed from users/smeenai/1/head to main December 3, 2024 19:11
@smeenai smeenai merged commit 540b171 into main Dec 3, 2024
6 checks passed
@smeenai smeenai deleted the users/smeenai/2/head branch December 3, 2024 19:14
lanza pushed a commit that referenced this pull request Mar 18, 2025
Our previous logic here was matching CodeGen, which folds trivial
assignment operator calls into memcpys, but we want to avoid that. Note
that we still end up emitting memcpys for arrays of classes with trivial
assignment operators; #1177 tracks
fixing that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants