- Apr 28, 2005
-
-
Chris Lattner authored
llvm-svn: 21607
-
Chris Lattner authored
llvm-svn: 21606
-
Chris Lattner authored
llvm-svn: 21605
-
Reid Spencer authored
constant folding implemented in lib/Transforms/Utils/Local.cpp. llvm-svn: 21604
-
Reid Spencer authored
Help Wanted! There's a lot of them to write. llvm-svn: 21603
-
- Apr 27, 2005
-
-
Reid Spencer authored
llvm-svn: 21602
-
Chris Lattner authored
llvm-svn: 21600
-
Andrew Lenharth authored
Implement Value* tracking for loads and stores in the selection DAG. This enables one to use alias analysis in the backends. (TRUNK)Stores and (EXT|ZEXT|SEXT)Loads have an extra SDOperand which is a SrcValueSDNode which contains the Value*. Note that if the operation is introduced by the backend, it will still have the operand, but the value* will be null. llvm-svn: 21599
-
Chris Lattner authored
llvm-svn: 21598
-
Reid Spencer authored
* Name the instructions by appending to name of original * Factor common part out of a switch statement. llvm-svn: 21597
-
Andrew Lenharth authored
llvm-svn: 21596
-
Andrew Lenharth authored
llvm-svn: 21593
-
Andrew Lenharth authored
llvm-svn: 21592
-
Andrew Lenharth authored
llvm-svn: 21591
-
Duraid Madina authored
llvm-svn: 21590
-
Reid Spencer authored
* Correct stale documentation in a few places * Re-order the file to better associate things and reduce line count * Make the pass thread safe by caching the Function* objects needed by the optimizers in the pass object instead of globally. * Provide the SimplifyLibCalls pass object to the optimizer classes so they can access cached Function* objects and TargetData info * Make sure the pass resets its cache if the Module passed to runOnModule changes * Rename CallOptimizer LibCallOptimization. All the classes are named *Optimization while the objects are *Optimizer. * Don't cache Function* in the optimizer objects because they could be used by multiple PassManager's running in multiple threads * Add an optimization for strcpy which is similar to strcat * Add a "TODO" list at the end of the file for ideas on additional libcall optimizations that could be added (get ideas from other compilers). Sorry for the huge diff. Its mostly reorganization of code. That won't happen again as I believe the design and infrastructure for this pass is now done or close to it. llvm-svn: 21589
-
Chris Lattner authored
call to them into an 'unreachable' instruction. This triggers a bunch of times, particularly on gcc: gzip: 36 gcc: 601 eon: 12 bzip: 38 llvm-svn: 21587
-
Chris Lattner authored
llvm-svn: 21586
-
Reid Spencer authored
llvm-svn: 21585
-
Andrew Lenharth authored
A first step towards being able to do more interesting things with the nightly tester data. Moreinteresting things will come soon, so tune in llvm-svn: 21584
-
Reid Spencer authored
llvm-svn: 21583
-
Reid Spencer authored
helps track down what gets triggered in the pass so its easier to identify good test cases. llvm-svn: 21582
-
Chris Lattner authored
'unwinding' llvm-svn: 21581
-
Reid Spencer authored
llvm-svn: 21580
-
Reid Spencer authored
llvm-svn: 21579
-
Reid Spencer authored
llvm-svn: 21578
-
Chris Lattner authored
llvm-svn: 21577
-
Chris Lattner authored
llvm-svn: 21576
-
Reid Spencer authored
llvm-svn: 21575
-
Reid Spencer authored
llvm-svn: 21574
-
- Apr 26, 2005
-
-
Reid Spencer authored
form from the "call" form. llvm-svn: 21573
-
Reid Spencer authored
the uninitiated reader is not confused. llvm-svn: 21572
-
Chris Lattner authored
llvm-svn: 21571
-
Reid Spencer authored
* MemCpyOptimization can only be optimized if the 3rd and 4th arguments are constants and we weren't checking for that. * The result of llvm.memcpy (and llvm.memmove) is void* not sbyte*, put in a cast. llvm-svn: 21570
-
Reid Spencer authored
* Have the SimplifyLibCalls pass acquire the TargetData and pass it down to the optimization classes so they can use it to make better choices for the signatures of functions, etc. * Rearrange the code a little so the utility functions are closer to their usage and keep the core of the pass near the top of the files. * Adjust the StrLen pass to get/use the correct prototype depending on the TargetData::getIntPtrType() result. The result of strlen is size_t which could be either uint or ulong depending on the platform. * Clean up some coding nits (cast vs. dyn_cast, remove redundant items from a switch, etc.) * Implement the MemMoveOptimization as a twin of MemCpyOptimization (they only differ in name). llvm-svn: 21569
-
Reid Spencer authored
llvm-svn: 21568
-
Reid Spencer authored
llvm-svn: 21567
-
Chris Lattner authored
Vladimir Prus! llvm-svn: 21566
-
Chris Lattner authored
llvm-svn: 21565
-
Duraid Madina authored
llvm-svn: 21564
-