- Jan 05, 2007
-
-
Chris Lattner authored
undef operands. llvm-svn: 32899
-
Chris Lattner authored
llvm-svn: 32893
-
Chris Lattner authored
llvm-svn: 32890
-
- Jan 04, 2007
-
-
Reid Spencer authored
llvm-svn: 32866
-
Chris Lattner authored
llvm-svn: 32858
-
- Jan 03, 2007
-
-
Jim Laskey authored
llvm-svn: 32827
-
- Dec 31, 2006
-
-
Reid Spencer authored
llvm-svn: 32803
-
Reid Spencer authored
This patch replaces signed integer types with signless ones: 1. [US]Byte -> Int8 2. [U]Short -> Int16 3. [U]Int -> Int32 4. [U]Long -> Int64. 5. Removal of isSigned, isUnsigned, getSignedVersion, getUnsignedVersion and other methods related to signedness. In a few places this warranted identifying the signedness information from other sources. llvm-svn: 32785
-
- Dec 24, 2006
-
-
Reid Spencer authored
Fix this by ensuring that a bitcast is inserted to do sign switching. This is only temporarily needed as the merging of signed and unsigned is next on the SignlessTypes plate. llvm-svn: 32757
-
- Dec 23, 2006
-
-
Reid Spencer authored
correctly and emit "may be used uninitialized" warnings. llvm-svn: 32756
-
Reid Spencer authored
Don't allow CmpInst instances to be processed in FoldSelectOpOp because you can't easily swap their operands. llvm-svn: 32753
-
Reid Spencer authored
This patch removes the SetCC instructions and replaces them with the ICmp and FCmp instructions. The SetCondInst instruction has been removed and been replaced with ICmpInst and FCmpInst. llvm-svn: 32751
-
Chris Lattner authored
llvm-svn: 32750
-
- Dec 20, 2006
-
-
Chris Lattner authored
code to handle instructions as well, so that we properly fold things like X & undef -> 0. This fixes Transforms/SCCP/2006-12-19-UndefBug.ll llvm-svn: 32715
-
- Dec 19, 2006
-
-
Chris Lattner authored
llvm-svn: 32692
-
Chris Lattner authored
converted, we lose a static initializer. This also allows GCC to emit warnings about unused statistics. llvm-svn: 32690
-
- Dec 18, 2006
-
-
Reid Spencer authored
creation. These changes are still temporary but at least this pushes knowledge of signedness out closer to where it can be determined properly and allows signedness to be removed from VMCore. llvm-svn: 32654
-
- Dec 15, 2006
-
-
Chris Lattner authored
llvm-svn: 32595
-
- Dec 13, 2006
-
-
Reid Spencer authored
used to determine whether a ZExt or SExt cast is performed. Instead, pass an "isSigned" bool to the function and determine its value from the opcode of the cast involved. Also, clean up some cruft from previous patches. llvm-svn: 32548
-
Reid Spencer authored
cast instructions. A few are bug fixes. llvm-svn: 32544
-
Reid Spencer authored
make sure to also check that it is a zext from bool, not any other cast operation type. llvm-svn: 32539
-
Reid Spencer authored
The cast patch introduced the possibility that the wrong cast opcode could be used and that this transform could trigger on different kinds of cast operations. This patch rectifies that. llvm-svn: 32538
-
Reid Spencer authored
so the decision of which opcode to use is pushed upward to the caller. Adjust the callers to pass the expected opcode. llvm-svn: 32535
-
Chris Lattner authored
obscure bugs affecting the X86 code generator. I will reenable this when fixed. llvm-svn: 32524
-
Reid Spencer authored
creation calls. llvm-svn: 32521
-
Reid Spencer authored
Rename getZeroExtend and getSignExtend to getZExt and getSExt to match the the casting mnemonics in the rest of LLVM. llvm-svn: 32514
-
- Dec 12, 2006
-
-
Chris Lattner authored
llvm-svn: 32487
-
Chris Lattner authored
llvm-svn: 32486
-
Reid Spencer authored
llvm-svn: 32479
-
Reid Spencer authored
llvm-svn: 32469
-
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 08, 2006
-
-
Reid Spencer authored
MarkAliveBlocks. llvm-svn: 32375
-
- Dec 07, 2006
-
-
Bill Wendling authored
llvm-svn: 32320
-
Bill Wendling authored
now cerr, cout, and NullStream resp. llvm-svn: 32298
-
- Dec 06, 2006
-
-
Reid Spencer authored
llvm-svn: 32288
-
Chris Lattner authored
llvm-svn: 32280
-
Chris Lattner authored
is 'unsigned'. llvm-svn: 32279
-