mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-27 05:32:22 +00:00
tail calls on x86 are implemented.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119920 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0eb49c57f0
commit
79a980ad85
@ -1535,22 +1535,6 @@ the float directly.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
#include <math.h>
|
||||
double foo(double a) { return sin(a); }
|
||||
|
||||
This compiles into this on x86-64 Linux:
|
||||
foo:
|
||||
subq $8, %rsp
|
||||
call sin
|
||||
addq $8, %rsp
|
||||
ret
|
||||
vs:
|
||||
|
||||
foo:
|
||||
jmp sin
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
The arg promotion pass should make use of nocapture to make its alias analysis
|
||||
stuff much more precise.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user