[Issue 15121] New: Unneeded stack frame generated
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Sep 26 14:36:45 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=15121
Issue ID: 15121
Summary: Unneeded stack frame generated
Product: D
Version: D2
Hardware: x86_64
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
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.
--
More information about the Digitalmars-d-bugs
mailing list