Bug 15121 – Unneeded stack frame generated

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2015-09-26T21:36:45Z
Last change time
2024-12-13T18:44:57Z
Keywords
backend, performance
Assigned to
No Owner
Creator
Walter Bright
See also
https://issues.dlang.org/show_bug.cgi?id=6904
Moved to GitHub: dmd#17725 →

Comments

Comment #0 by bugzilla — 2015-09-26T21:36:45Z
The code: int test(int x) { return x; } generates: 55 push RBP 48 8B EC mov RBP,RSP 48 89 C8 mov RAX,RCX 5D pop RBP C3 ret The stack frame is not necessary, and the 48 REX prefix on the RAX register move is also unnecessary.
Comment #1 by robert.schadek — 2024-12-13T18:44:57Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17725 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB