aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/LevelRaise.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Move stuff out of the Optimizations directories into the appropriate TransformsChris Lattner2002-01-211-5/+5
| | | | | | | directories. Eliminate the opt namespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1520 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503 91177308-0d34-0410-b5e6-96231b3b80d8
* * Support pointer indexingChris Lattner2001-12-141-210/+33
| | | | | | | | | | * Unsized arrays are a thing of the past, remove DoInsertArrayCast family * Remove cases were we would get into infinite loops because we would insert a cast which would then be removed, inserting a different cast, ad infinitum... * Remove some code that should be redundant with ExprTypeConvert code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1465 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove code that is superceeded by code in ExprTypeConvert.cppChris Lattner2001-12-071-40/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1431 91177308-0d34-0410-b5e6-96231b3b80d8
* We can do cast-add elimination even on casts that reinterpretChris Lattner2001-12-061-13/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1427 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix pessimizations on sized arraysChris Lattner2001-12-051-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1423 91177308-0d34-0410-b5e6-96231b3b80d8
* Hrm, don't do debugging output when debugging is off. :(Chris Lattner2001-12-051-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1420 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixes to type conversion stuff to match induction variables more frequentlyChris Lattner2001-12-051-19/+119
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1417 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove printoutsChris Lattner2001-12-041-2/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1413 91177308-0d34-0410-b5e6-96231b3b80d8
* Renamed inst_const_iterator -> const_inst_iteratorChris Lattner2001-12-041-7/+7
| | | | | | | | Renamed op_const_iterator -> const_op_iterator Renamed PointerType::getValueType() -> PointerType::getElementType() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1408 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename ConstPoolVal -> ConstantChris Lattner2001-12-031-5/+4
| | | | | | | | Rename ConstPool* -> Constant* Rename ConstPoolVals.h -> ConstantVals.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1407 91177308-0d34-0410-b5e6-96231b3b80d8
* Create a new #include "Support/..." directory structure to move thingsChris Lattner2001-11-271-1/+1
| | | | | | | | | from "llvm/Support/..." that are not llvm dependant. Move files and fix #includes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1400 91177308-0d34-0410-b5e6-96231b3b80d8
* Turn off debug infoChris Lattner2001-11-261-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1396 91177308-0d34-0410-b5e6-96231b3b80d8
* Include const prop as part of -raiseChris Lattner2001-11-261-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1379 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up code, implement array indexing stuffChris Lattner2001-11-261-423/+175
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1340 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove much cruft from the MemAccessInst instructionChris Lattner2001-11-141-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1298 91177308-0d34-0410-b5e6-96231b3b80d8
* Better heuristics for handling arraysChris Lattner2001-11-141-50/+175
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1296 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid assertion failure when taking size of unsized array. Todo item herEChris Lattner2001-11-131-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1286 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve raising significantlyChris Lattner2001-11-081-54/+93
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1214 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bugsChris Lattner2001-11-061-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1152 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug with ADD nodes and malloc promotionChris Lattner2001-11-051-9/+29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1144 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the expression map correctly.Chris Lattner2001-11-051-6/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1140 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor code to share stuffChris Lattner2001-11-041-558/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1127 91177308-0d34-0410-b5e6-96231b3b80d8
* * Relax restriction that prevented malloc promotion in certain casesChris Lattner2001-11-041-21/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1125 91177308-0d34-0410-b5e6-96231b3b80d8
* * Disable debug outputChris Lattner2001-11-041-22/+48
| | | | | | | | * fix minor bug with taking datasize of unsized array type * Insert code to support speculative changes later git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1122 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert backward conversion of expression trees into a new more powerful ↵Chris Lattner2001-11-041-11/+297
| | | | | | bidirectional approach. Add transforms for more instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1121 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor method renameChris Lattner2001-11-041-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1119 91177308-0d34-0410-b5e6-96231b3b80d8
* Add transformations for Load and GetElementPtr. Fix broken transform with shr.Chris Lattner2001-11-041-0/+99
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1118 91177308-0d34-0410-b5e6-96231b3b80d8
* * Add comments for peepholesChris Lattner2001-11-011-3/+91
| | | | | | | | | | | | | | | * Implement new peephole: // Peephole optimize the following instructions: // %t1 = cast {<...>} * %StructPtr to <ty> * // // Into: %t2 = getelementptr {<...>} * %StructPtr, <0, 0, 0, ...> // %t1 = cast <eltype> * %t1 to <ty> * This peephole eliminated 9 evil casts in the health benchmark, and completely turned the addList method around. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1085 91177308-0d34-0410-b5e6-96231b3b80d8
* Add DCE as integral part of the level raising to avoid processing ↵Chris Lattner2001-11-011-4/+9
| | | | | | instructions that are dead git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1084 91177308-0d34-0410-b5e6-96231b3b80d8
* * Implement expression type conversion for constant valuesChris Lattner2001-11-011-11/+76
| | | | | | | | | | | | | | | | * Fix a problem setting a name on a constant value that died because no symbol table was passed in * Add some comments describing the passes * Implement a new peephole: // Peephole optimize the following instructions: // %t = cast <T1>* %P to <T2> * ;; If T1 is losslessly convertable to T2 // store <T2> %V, <T2>* %t // // Into: // %t = cast <T2> %V to <T1> // store <T1> %t2, <T1>* %P git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1080 91177308-0d34-0410-b5e6-96231b3b80d8
* * Convert getelementptr/store pairs into a single storeChris Lattner2001-11-011-1/+26
| | | | | | | * Convert getelementptr/load pairs into a single load git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1075 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of level raising code, after move and cleanup and expands ↵Chris Lattner2001-11-011-0/+592
from the opt directory git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1074 91177308-0d34-0410-b5e6-96231b3b80d8