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 783dd6ece4
commit 9de0176ef8
1 changed files with 0 additions and 16 deletions

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.