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:
Chris Lattner 2010-11-21 06:10:27 +00:00
parent 0eb49c57f0
commit 79a980ad85

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.