D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 18009 - DMD's backend doesn't produce optimal init code for smaller types
Summary: DMD's backend doesn't produce optimal init code for smaller types
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2017-11-25 01:46 UTC by Mike Franklin
Modified: 2024-12-13 18:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Mike Franklin 2017-11-25 01:46:23 UTC
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
Comment 1 dlangBugzillaToGithub 2024-12-13 18:55:07 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19335

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB