- Jan 17, 2006
-
-
Chris Lattner authored
unsigned llvm.cttz.* intrinsic, fixing the 2005-05-11-Popcount-ffs-fls regression last night. llvm-svn: 25398
-
- Jan 16, 2006
-
-
Reid Spencer authored
This patch is an incremental step towards supporting a flat symbol table. It de-overloads the intrinsic functions by providing type-specific intrinsics and arranging for automatically upgrading from the old overloaded name to the new non-overloaded name. Specifically: llvm.isunordered -> llvm.isunordered.f32, llvm.isunordered.f64 llvm.sqrt -> llvm.sqrt.f32, llvm.sqrt.f64 llvm.ctpop -> llvm.ctpop.i8, llvm.ctpop.i16, llvm.ctpop.i32, llvm.ctpop.i64 llvm.ctlz -> llvm.ctlz.i8, llvm.ctlz.i16, llvm.ctlz.i32, llvm.ctlz.i64 llvm.cttz -> llvm.cttz.i8, llvm.cttz.i16, llvm.cttz.i32, llvm.cttz.i64 New code should not use the overloaded intrinsic names. Warnings will be emitted if they are used. llvm-svn: 25366
-
Chris Lattner authored
llvm-svn: 25363
-
Chris Lattner authored
llvm-svn: 25349
-
- Jan 14, 2006
-
-
Chris Lattner authored
of doing it ourselves. This fixes Transforms/Inline/2006-01-14-CallGraphUpdate.ll llvm-svn: 25321
-
Chris Lattner authored
llvm.stacksave/restore when it inserts calls to them. llvm-svn: 25320
-
Chris Lattner authored
llvm-svn: 25315
-
Nate Begeman authored
llvm-svn: 25309
-
- Jan 13, 2006
-
-
Robert Bocchino authored
llvm-svn: 25299
-
Chris Lattner authored
llvm-svn: 25295
-
Chris Lattner authored
llvm-svn: 25294
-
Chris Lattner authored
llvm-svn: 25292
-
Chris Lattner authored
InlineFunction handles this case safely. This implements Transforms/Inline/dynamic_alloca_test.ll. llvm-svn: 25288
-
Chris Lattner authored
resultant code with llvm.stacksave/llvm.stackrestore intrinsics. llvm-svn: 25286
-
Chris Lattner authored
time in common C cases. llvm-svn: 25285
-
Chris Lattner authored
it doesn't contain any calls. This is a fairly common case for C++ code, so it will probably speed up the inliner marginally in these cases. llvm-svn: 25284
-
Chris Lattner authored
"HandleInlinedInvoke". No functionality change. llvm-svn: 25283
-
Chris Lattner authored
code being cloned if the client wants. llvm-svn: 25281
-
Chris Lattner authored
function was not an alloca, we wouldn't check the entry block for any allocas, leading to increased stack space in some cases. In practice, allocas are almost always at the top of the block, so this was never noticed. llvm-svn: 25280
-
Chris Lattner authored
llvm-svn: 25279
-
- Jan 11, 2006
-
-
Chris Lattner authored
llvm-svn: 25203
-
Chris Lattner authored
Patch written by Daniel Berlin! llvm-svn: 25202
-
Chris Lattner authored
Patch written by Daniel Berlin! llvm-svn: 25201
-
- Jan 10, 2006
-
-
Robert Bocchino authored
llvm-svn: 25181
-
Robert Bocchino authored
llvm-svn: 25180
-
- Jan 09, 2006
-
-
Chris Lattner authored
llvm-svn: 25153
-
- Jan 07, 2006
-
-
Chris Lattner authored
llvm-svn: 25137
-
- Jan 06, 2006
-
-
Chris Lattner authored
llvm-svn: 25130
-
Chris Lattner authored
the shifts. This allows us to fold this (which is the 'integer add a constant' sequence from cozmic's scheme compmiler): int %x(uint %anf-temporary776) { %anf-temporary777 = shr uint %anf-temporary776, ubyte 1 %anf-temporary800 = cast uint %anf-temporary777 to int %anf-temporary804 = shl int %anf-temporary800, ubyte 1 %anf-temporary805 = add int %anf-temporary804, -2 %anf-temporary806 = or int %anf-temporary805, 1 ret int %anf-temporary806 } into this: int %x(uint %anf-temporary776) { %anf-temporary776 = cast uint %anf-temporary776 to int %anf-temporary776.mask1 = add int %anf-temporary776, -2 %anf-temporary805 = or int %anf-temporary776.mask1, 1 ret int %anf-temporary805 } note that instcombine already knew how to eliminate the AND that the two shifts fold into. This is tested by InstCombine/shift.ll:test26 -Chris llvm-svn: 25128
-
Chris Lattner authored
llvm-svn: 25126
-
Chris Lattner authored
functionality changes. llvm-svn: 25125
-
- Jan 03, 2006
-
-
Chris Lattner authored
read the code. Do not internalize debugger anchors. llvm-svn: 25067
-
- Dec 26, 2005
-
-
Duraid Madina authored
llvm-svn: 25021
-
- Dec 14, 2005
-
-
Chris Lattner authored
behavior in 126.gcc on big-endian systems. llvm-svn: 24708
-
- Dec 13, 2005
-
-
Reid Spencer authored
a) use better local variable names (OldMT -> OldFT) where "M" is used to mean "Function" (perhaps it was previously "Method"?) b) print out the module identifier in a warning message so that it is possible to track down in which module the error occurred. llvm-svn: 24698
-
- 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
-
- Dec 05, 2005
-
-
Chris Lattner authored
know that small negative values fit into the immediate field of addressing modes. llvm-svn: 24608
-
Chris Lattner authored
llvm-svn: 24602
-
- Dec 03, 2005
-
-
Chris Lattner authored
llvm-svn: 24581
-
- Nov 30, 2005
-
-
Chris Lattner authored
Transforms/DeadStoreElimination/2005-11-30-vaarg.ll llvm-svn: 24545
-