summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
Commit message (Collapse)AuthorAgeFilesLines
* Merged in autoconf branch. This provides configuration via the autoconfJohn Criswell2003-06-302-2/+2
| | | | | | system. llvm-svn: 7014
* Eliminate using declarations, adjust for new DSGraph APIChris Lattner2003-06-301-21/+19
| | | | llvm-svn: 6992
* Allow the inlining limit to be controlled from the command line!Chris Lattner2003-06-281-1/+5
| | | | llvm-svn: 6929
* Add support to globaldce for deleting dead function prototypesChris Lattner2003-06-261-1/+7
| | | | llvm-svn: 6918
* When internalizing global ctor/dtor list, also mark it constant. This is ↵Chris Lattner2003-06-261-0/+8
| | | | | | | | gross, but until DSA is working all of the time and is totally reliable, we do this. llvm-svn: 6917
* Add support for elimination of load instruction from global constantsChris Lattner2003-06-261-0/+48
| | | | llvm-svn: 6912
* Instcombine: X * -1 -> -XChris Lattner2003-06-251-3/+4
| | | | llvm-svn: 6904
* Fix bug: Mem2Reg/2003-06-26-IterativePromote.llChris Lattner2003-06-251-10/+17
| | | | llvm-svn: 6901
* Add argument to DAE to allow operation on non-internal functionsChris Lattner2003-06-251-9/+21
| | | | llvm-svn: 6895
* Fix bug: ADCE/2003-06-24-BadSuccessor.llChris Lattner2003-06-241-12/+35
| | | | llvm-svn: 6891
* Do not mark ALL terminators live if any instruciton in the block is live. ↵Chris Lattner2003-06-241-2/+23
| | | | | | | | | We only want to mark it live if it is an unconditional branch. This fixes bug: ADCE/2002-05-28-Crash.ll and makes this pass _much_ more useful. llvm-svn: 6887
* Fix bug: SCCP/2003-06-24-OverdefinedPHIValue.llChris Lattner2003-06-241-4/+5
| | | | llvm-svn: 6883
* Fix bug: TailDup/2003-06-24-Simpleloop.llChris Lattner2003-06-241-1/+2
| | | | llvm-svn: 6881
* Implement new transforms:Chris Lattner2003-06-231-4/+33
| | | | | | | Replace (cast (sub A, B) to bool) -> (setne A, B) Replace (cast (add A, B) to bool) -> (setne A, -B) llvm-svn: 6873
* avoid dividing by zero when dealing with zero sized types (like [0 x double])Chris Lattner2003-06-232-0/+2
| | | | llvm-svn: 6862
* Add paranoia checkingChris Lattner2003-06-221-1/+1
| | | | llvm-svn: 6856
* Test changeChris Lattner2003-06-221-0/+1
| | | | llvm-svn: 6852
* Initial checkin of Tail duplication pass.Chris Lattner2003-06-221-0/+324
| | | | llvm-svn: 6846
* Instcombine cast (getelementptr Ptr, 0, 0, 0) to ... into: cast Ptr to ...Chris Lattner2003-06-211-0/+17
| | | | | | | This fixes type safety problems in a variety of benchmarks that were confusing DSA. llvm-svn: 6837
* Fix the build. :(Chris Lattner2003-06-201-3/+3
| | | | llvm-svn: 6797
* Changes to privatize NodeTypeChris Lattner2003-06-191-6/+6
| | | | llvm-svn: 6795
* Implement the functionality of InstCombine/call.llChris Lattner2003-06-191-1/+145
| | | | llvm-svn: 6783
* Remove a bunch of complicated code. The functionality is implemented in ↵Chris Lattner2003-06-191-118/+6
| | | | | | instcombine instead llvm-svn: 6782
* Handle arguments passed in through the va_arg areaChris Lattner2003-06-181-1/+7
| | | | llvm-svn: 6769
* Initial checkin of DAE passChris Lattner2003-06-171-0/+304
| | | | llvm-svn: 6759
* Don't corrupt memory when removing an instruction from the program, butChris Lattner2003-06-171-0/+1
| | | | | | not the worklist llvm-svn: 6733
* Fix bug: ADCE/2003-06-11-InvalidCFG.llChris Lattner2003-06-161-5/+14
| | | | | | | This was because we were deleting large chunks of functions without an exit block, because the post-dominance information was not useful. This broke crafty and twolf. llvm-svn: 6698
* Fix bug: LevelRaise/2003-06-07-EmptyArrayTest.llChris Lattner2003-06-071-1/+2
| | | | llvm-svn: 6669
* Fix compilation problem on GCC 2.9xChris Lattner2003-06-071-1/+1
| | | | llvm-svn: 6667
* Fix bug: InstCombine/2003-06-05-BranchInvertInfLoop.llChris Lattner2003-06-051-1/+1
| | | | llvm-svn: 6630
* Fixed a bug so initialization code is always inserted in mainAnand Shukla2003-06-052-18/+44
| | | | llvm-svn: 6622
* Use a constant expr GEP instead of an actual instructionChris Lattner2003-06-051-4/+2
| | | | llvm-svn: 6620
* Make this work with counter > 127Chris Lattner2003-06-041-1/+1
| | | | llvm-svn: 6613
* Made changes suggested by ChrisSumant Kowshik2003-06-041-51/+55
| | | | llvm-svn: 6606
* Clean up previous code.Chris Lattner2003-06-041-11/+20
| | | | | | Add new combination to turn seteq X, 0 -> not(cast X to bool) llvm-svn: 6604
* Implement combination of boolean not with branchChris Lattner2003-06-041-0/+14
| | | | llvm-svn: 6599
* Implement xform: (X != 0) -> (bool)XChris Lattner2003-06-011-0/+3
| | | | llvm-svn: 6506
* Added the #(internal functions) to outputAnand Shukla2003-06-011-0/+8
| | | | llvm-svn: 6502
* Fix bug: FunctionResolve/2003-05-31-AllInternalDecls.llChris Lattner2003-05-311-0/+17
| | | | llvm-svn: 6486
* Fix bug: FuncResolve/2003-05-31-InternalDecl.llChris Lattner2003-05-311-2/+6
| | | | | | Count resolutions correctly. llvm-svn: 6482
* Simplify funcresolve a bit moreChris Lattner2003-05-311-7/+7
| | | | llvm-svn: 6480
* Fix bug: FunctionResolve/2003-05-31-FuncPointerResolve.llChris Lattner2003-05-311-11/+3
| | | | llvm-svn: 6479
* Fixed comment width, changed arg to be const, fixed indentation, removed ↵Tanya Lattner2003-05-311-8/+6
| | | | | | unnecessary includes. llvm-svn: 6476
* Okay totally give up on trying to optimize aggregates that cannot be completelyChris Lattner2003-05-301-40/+6
| | | | | | broken up into their elements. Too many programs break because of this. llvm-svn: 6440
* add a check that allows the SRoA pass to avoid breaking programs, even if theirChris Lattner2003-05-301-1/+33
| | | | | | behavior is technically undefined llvm-svn: 6438
* Added the CloneTrace function which clones traces. It takes a vector of ↵Tanya Lattner2003-05-301-0/+83
| | | | | | | | basic blocks, removes internal phi nodes, and returns a new vector of basic blocks. llvm-svn: 6431
* Fix bug: ScalarRepl/2003-05-30-MultiLevel.llChris Lattner2003-05-301-4/+4
| | | | llvm-svn: 6428
* Fix bug: ScalarRepl/2003-05-29-ArrayFail.llChris Lattner2003-05-301-42/+128
| | | | llvm-svn: 6425
* Added support for function pointersSumant Kowshik2003-05-291-104/+583
| | | | llvm-svn: 6420
* Add commentChris Lattner2003-05-291-0/+11
| | | | llvm-svn: 6415
OpenPOWER on IntegriCloud