Move a target-independent note out of the X86 readme.

llvm-svn: 28398
This commit is contained in:
Chris Lattner 2006-05-19 20:45:08 +00:00
parent d6a25a08d1
commit 240f846495
1 changed files with 12 additions and 0 deletions

View File

@ -208,3 +208,15 @@ emit:
movl %eax, _foo movl %eax, _foo
//===---------------------------------------------------------------------===// //===---------------------------------------------------------------------===//
Combine: a = sin(x), b = cos(x) into a,b = sincos(x).
Expand these to calls of sin/cos and stores:
double sincos(double x, double *sin, double *cos);
float sincosf(float x, float *sin, float *cos);
long double sincosl(long double x, long double *sin, long double *cos);
Doing so could allow SROA of the destination pointers. See also:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17687
//===---------------------------------------------------------------------===//