mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
Add some random notes, not high-prio
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26052 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8d3f490991
commit
8f77b73430
@ -161,6 +161,14 @@ http://gcc.gnu.org/ml/gcc-patches/2004-08/msg02011.html
|
|||||||
|
|
||||||
Combine: a = sin(x), b = cos(x) into a,b = sincos(x).
|
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
|
||||||
|
|
||||||
//===---------------------------------------------------------------------===//
|
//===---------------------------------------------------------------------===//
|
||||||
|
|
||||||
The instruction selector sometimes misses folding a load into a compare. The
|
The instruction selector sometimes misses folding a load into a compare. The
|
||||||
@ -386,3 +394,16 @@ LBB_X_2:
|
|||||||
|
|
||||||
The x86 backend currently supports dynamic-no-pic. Need to add asm
|
The x86 backend currently supports dynamic-no-pic. Need to add asm
|
||||||
printer support for static and PIC.
|
printer support for static and PIC.
|
||||||
|
|
||||||
|
//===---------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
We should generate bts/btr/etc instructions on targets where they are cheap or
|
||||||
|
when codesize is important. e.g., for:
|
||||||
|
|
||||||
|
void setbit(int *target, int bit) {
|
||||||
|
*target |= (1 << bit);
|
||||||
|
}
|
||||||
|
void clearbit(int *target, int bit) {
|
||||||
|
*target &= ~(1 << bit);
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user