https://bugs.llvm.org/show_bug.cgi?id=49726
Bug ID: 49726
Summary: Utilize stack adjusting push better
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
void bar(long long int);
long long int foo(long long int x) {
bar(x);
return x;
}
produces:
foo(long long):
push rbx
mov rbx, rdi
call bar(long long)
mov rax, rbx
pop rbx
ret
could not it be:
foo(long long):
push rdi
call bar(long long)
pop rax
ret
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs