From 240f8464959091dcb35c278048cb9482da5dad6e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 19 May 2006 20:45:08 +0000 Subject: [PATCH] Move a target-independent note out of the X86 readme. llvm-svn: 28398 --- llvm/lib/Target/README.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt index 54bd94811d76..92fc8d036dd2 100644 --- a/llvm/lib/Target/README.txt +++ b/llvm/lib/Target/README.txt @@ -208,3 +208,15 @@ emit: 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 + +//===---------------------------------------------------------------------===//