1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

tail calls on x86 are implemented.

llvm-svn: 119920
This commit is contained in:
Chris Lattner 2010-11-21 06:10:27 +00:00
parent 1476bfec1e
commit 09bf382b8f

View File

@ -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.