- Dec 12, 2006
-
-
Chris Lattner authored
llvm-svn: 32468
-
- Dec 11, 2006
-
-
Chris Lattner authored
llvm-svn: 32426
-
Chris Lattner authored
This implements Transforms/ScalarRepl/union-packed.ll llvm-svn: 32422
-
Chris Lattner authored
* Add support for promoting unions with fp values in them. This produces our new int<->fp bitcast instructions, implementing Transforms/ScalarRepl/union-fp-int.ll As an example, this allows us to compile this: union intfloat { int i; float f; }; float invsqrt(const float arg_x) { union intfloat x = { .f = arg_x }; const float xhalf = arg_x * 0.5f; x.i = 0x5f3759df - (x.i >> 1); return x.f * (1.5f - xhalf * x.f * x.f); } into: _invsqrt: movss 4(%esp), %xmm0 movd %xmm0, %eax sarl %eax movl $1597463007, %ecx subl %eax, %ecx movd %ecx, %xmm1 mulss LCPI1_0, %xmm0 mulss %xmm1, %xmm0 movss LCPI1_1, %xmm2 mulss %xmm1, %xmm0 subss %xmm0, %xmm2 movl 8(%esp), %eax mulss %xmm2, %xmm1 movss %xmm1, (%eax) ret instead of: _invsqrt: subl $4, %esp movss 8(%esp), %xmm0 movss %xmm0, (%esp) movl (%esp), %eax movl $1597463007, %ecx sarl %eax subl %eax, %ecx movl %ecx, (%esp) mulss LCPI1_0, %xmm0 movss (%esp), %xmm1 mulss %xmm1, %xmm0 mulss %xmm1, %xmm0 movss LCPI1_1, %xmm2 subss %xmm0, %xmm2 mulss %xmm2, %xmm1 movl 12(%esp), %eax movss %xmm1, (%eax) addl $4, %esp ret llvm-svn: 32418
-
- Dec 06, 2006
-
-
Chris Lattner authored
is 'unsigned'. llvm-svn: 32279
-
- Nov 27, 2006
-
-
Reid Spencer authored
The long awaited CAST patch. This introduces 12 new instructions into LLVM to replace the cast instruction. Corresponding changes throughout LLVM are provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the exception of 175.vpr which fails only on a slight floating point output difference. llvm-svn: 31931
-
- Nov 26, 2006
-
-
Bill Wendling authored
llvm-svn: 31923
-
- Nov 08, 2006
-
-
Reid Spencer authored
This patch converts the old SHR instruction into two instructions, AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not dependent on the sign of their operands. llvm-svn: 31542
-
- Nov 07, 2006
-
-
Chris Lattner authored
int func(vFloat v0, vFloat v1) { int ii; vSInt32 vsiidx[2]; vsiidx[0] = _mm_cvttps_epi32(v0); vsiidx[1] = _mm_cvttps_epi32(v1); ii = ((int *) vsiidx)[4]; return ii; } This fixes Transforms/ScalarRepl/2006-11-07-InvalidArrayPromote.ll llvm-svn: 31524
-
- Nov 02, 2006
-
-
Reid Spencer authored
Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting fall out by removing unused variables. Remaining warnings have to do with unused functions (I didn't want to delete code without review) and unused variables in generated code. Maintainers should clean up the remaining issues when they see them. All changes pass DejaGnu tests and Olden. llvm-svn: 31380
-
- Oct 24, 2006
-
-
Chris Lattner authored
llvm-svn: 31151
-
- Oct 20, 2006
-
-
Reid Spencer authored
This patch implements the first increment for the Signless Types feature. All changes pertain to removing the ConstantSInt and ConstantUInt classes in favor of just using ConstantInt. llvm-svn: 31063
-
- Oct 09, 2006
-
-
Chris Lattner authored
PR892 and Transforms/ScalarRepl/union-pointer.ll:test2 llvm-svn: 30825
-
Chris Lattner authored
llvm-svn: 30823
-
- Aug 28, 2006
-
-
Chris Lattner authored
llvm-svn: 29925
-
- Aug 27, 2006
-
-
Chris Lattner authored
llvm-svn: 29911
-
- Jun 29, 2006
-
-
Chris Lattner authored
dropped. This shrinks libllvmgcc.dylib another 67K llvm-svn: 28975
-
- Apr 20, 2006
-
-
Chris Lattner authored
llvm-svn: 27912
-
- Apr 14, 2006
-
-
Chris Lattner authored
insert/extractelement operations. This implements Transforms/ScalarRepl/vector_promote.ll llvm-svn: 27710
-
- Mar 08, 2006
-
-
Chris Lattner authored
arrays out of range in a horrible way, but we shouldn't break it anyway. Details in the comments. llvm-svn: 26606
-
- Jan 24, 2006
-
-
Chris Lattner authored
llvm-svn: 25587
-
- Jan 23, 2006
-
-
Chris Lattner authored
llvm-svn: 25514
-
- Dec 14, 2005
-
-
Chris Lattner authored
behavior in 126.gcc on big-endian systems. llvm-svn: 24708
-
- Dec 12, 2005
-
-
Chris Lattner authored
186.crafty by about 16% (from 15.109s to 13.045s) on my system. This turns allocas with unions/casts into scalars. For example crafty has something like this: union doub { unsigned short i[4]; long long d; }; int f(long long a) { return ((union doub){.d=a}).i[1]; } Instead of generating loads and stores to an alloca, we now promote the whole thing to a scalar long value. This implements: Transforms/ScalarRepl/AggregatePromote.ll llvm-svn: 24667
-
- Nov 05, 2005
-
-
Nate Begeman authored
Add support for specifying alignment and size of setjmp jmpbufs. No targets currently do anything with this information, nor is it presrved in the bytecode representation. That's coming up next. llvm-svn: 24196
-
- Apr 22, 2005
-
-
Misha Brukman authored
llvm-svn: 21427
-
- Jan 08, 2005
-
-
Chris Lattner authored
llvm-svn: 19379
-
- Nov 15, 2004
-
-
Reid Spencer authored
Patch contributed by Morten Ofstad. llvm-svn: 17830
-
- Nov 14, 2004
-
-
Chris Lattner authored
of the array is just two. This occurs 8 times in gcc, 6 times in crafty, and 12 times in 099.go. This implements ScalarRepl/sroa_two.ll llvm-svn: 17727
-
Chris Lattner authored
llvm-svn: 17724
-
- Sep 20, 2004
-
-
Chris Lattner authored
llvm-svn: 16432
-
- Sep 02, 2004
-
-
Reid Spencer authored
Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
-
- Jul 29, 2004
-
-
Misha Brukman authored
llvm-svn: 15328
-
- Jul 15, 2004
-
-
Chris Lattner authored
llvm-svn: 14839
-
- Jun 19, 2004
-
-
Chris Lattner authored
invalidated out from under us. This bug goes back to revision 1.1: scary. llvm-svn: 14242
-
- Apr 05, 2004
-
-
Chris Lattner authored
types and can have arbitrary 32- and 64-bit integer types indexing into sequential types. llvm-svn: 12653
-
- Dec 02, 2003
-
-
Chris Lattner authored
Fix regressions ScalarRepl/basictest.ll & arraytest.ll llvm-svn: 10287
-
- Nov 25, 2003
-
-
Chris Lattner authored
llvm-svn: 10226
-
- Nov 11, 2003
-
-
Brian Gaeke authored
llvm-svn: 9903
-
- Oct 29, 2003
-
-
Chris Lattner authored
llvm-svn: 9585
-