Bug 18009 – DMD's backend doesn't produce optimal init code for smaller types

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-11-25T01:46:23Z
Last change time
2024-12-13T18:55:07Z
Keywords
performance
Assigned to
No Owner
Creator
Mike Franklin
Moved to GitHub: dmd#19335 →

Comments

Comment #0 by slavo5150 — 2017-11-25T01:46:23Z
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 by robert.schadek — 2024-12-13T18:55:07Z
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