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

DMD's backend doesn't produce optimal init code for smaller types #19335

Open
dlangBugzillaToGithub opened this issue Nov 25, 2017 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

Mike Franklin reported this on 2017-11-25T01:46:23Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=18009

Description

An enhancement to DMD's frontend was submitted at https://github.com/dlang/dmd/pull/2146 for smaller types' init to elicit better code gen in the backend.

The argument for the code change in the frontend was one of expediency rather than due diligence.

Some participants in the discussion suggested that such an optimization should be done in the backend.  GDC already optimizes such code in its backend demonstrating feasibility and establishing precedent.  

See https://github.com/dlang/dmd/pull/2146 for context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants