Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Convert transforms over to standardize debugging output on -debug option | Chris Lattner | 2002-05-22 | 1 | -33/+9 | |
| | | | | llvm-svn: 2714 | |||||
* | Fix a major source of "type unsafety", where a cast is neccesary, but can | Chris Lattner | 2002-05-14 | 1 | -2/+40 | |
| | | | | | | | | | be put either before or after a load. We chose to cast the value loaded instead of the pointer to load from. Fixes bug: test/Regression/Transforms/LevelRaise/2002-05-10-LoadPeephole.ll llvm-svn: 2621 | |||||
* | * Add support for the -stats command line option to report how much is changed | Chris Lattner | 2002-05-10 | 1 | -2/+24 | |
| | | | | | | | | * Make cast-of-self-ty DCE the dead cast instruction immediately instead of waiting for it to be DCE'd by another sweep over the function. This speeds this up noticably. llvm-svn: 2597 | |||||
* | Reduce dependance on TransformInternals.h, instead using the TransformUtils ↵ | Chris Lattner | 2002-05-07 | 1 | -2/+2 | |
| | | | | | | library llvm-svn: 2518 | |||||
* | ExprTypeConvert will already do this transformation, no need to specialize | Chris Lattner | 2002-05-02 | 1 | -21/+0 | |
| | | | | | | it here. llvm-svn: 2431 | |||||
* | Eliminate duplicate or unneccesary #include's | Chris Lattner | 2002-04-29 | 1 | -2/+0 | |
| | | | | llvm-svn: 2397 | |||||
* | Add new optional getPassName() virtual function that a Pass can override | Chris Lattner | 2002-04-29 | 1 | -0/+2 | |
| | | | | | | to make debugging output a lot nicer. llvm-svn: 2395 | |||||
* | Tighten up the AnalysisUsage of lots of passes, primarily to correctly ↵ | Chris Lattner | 2002-04-28 | 1 | -0/+4 | |
| | | | | | | indicate whether or not they invalidate the CFGA llvm-svn: 2386 | |||||
* | Split ConstantVals.h into Constant.h and Constants.h | Chris Lattner | 2002-04-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 2378 | |||||
* | * Rename MethodPass class to FunctionPass | Chris Lattner | 2002-04-27 | 1 | -4/+4 | |
| | | | | | | | | | | | | | | | - Rename runOnMethod to runOnFunction * Transform getAnalysisUsageInfo into getAnalysisUsage - Method is now const - It now takes one AnalysisUsage object to fill in instead of 3 vectors to fill in - Pass's now specify which other passes they _preserve_ not which ones they modify (be conservative!) - A pass can specify that it preserves all analyses (because it never modifies the underlying program) * s/Method/Function/g in other random places as well llvm-svn: 2333 | |||||
* | s/Method/Function | Chris Lattner | 2002-04-08 | 1 | -3/+1 | |
| | | | | | | Remove extraneous #includes of llvm/Assembly/Writer llvm-svn: 2178 | |||||
* | ConstantHandling moved into VMCore library | Chris Lattner | 2002-04-08 | 1 | -1/+1 | |
| | | | | llvm-svn: 2165 | |||||
* | Change references to the Method class to be references to the Function | Chris Lattner | 2002-04-07 | 1 | -8/+8 | |
| | | | | | | | class. The Method class is obsolete (renamed) and all references to it are being converted over to Function. llvm-svn: 2144 | |||||
* | Fix the: test/Regression/Other/2002-03-20-LevelRaiseCrash.ll bug. It turned | Chris Lattner | 2002-03-21 | 1 | -5/+24 | |
| | | | | | | | out that almost always the result of the add was the same as the GEP that would be generated. In this case, however, it wasn't, so bad things happened. llvm-svn: 1929 | |||||
* | Namespace qualify debugging code | Chris Lattner | 2002-03-21 | 1 | -1/+1 | |
| | | | | llvm-svn: 1921 | |||||
* | * Fix bug: test/Regression/Other/2002-03-11-LevelRaiseIterInvalidate.ll | Chris Lattner | 2002-03-11 | 1 | -10/+4 | |
| | | | | | | | * Use more concise form of ReplaceInstWithInst to make code simpler * Output nicer message for dead code eliminated when debugging llvm-svn: 1861 | |||||
* | Change over to use new style pass mechanism, now passes only expose small | Chris Lattner | 2002-02-26 | 1 | -5/+15 | |
| | | | | | | creation functions in their public header file, unless they can help it. llvm-svn: 1816 | |||||
* | MethodPass's are now guaranteed to not be run on external methods! | Chris Lattner | 2002-01-31 | 1 | -2/+0 | |
| | | | | llvm-svn: 1611 | |||||
* | Move stuff out of the Optimizations directories into the appropriate Transforms | Chris Lattner | 2002-01-21 | 1 | -5/+5 | |
| | | | | | | directories. Eliminate the opt namespace. llvm-svn: 1520 | |||||
* | Changes to build successfully with GCC 3.02 | Chris Lattner | 2002-01-20 | 1 | -4/+4 | |
| | | | | llvm-svn: 1503 | |||||
* | * Support pointer indexing | Chris Lattner | 2001-12-14 | 1 | -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 llvm-svn: 1465 | |||||
* | Remove code that is superceeded by code in ExprTypeConvert.cpp | Chris Lattner | 2001-12-07 | 1 | -40/+1 | |
| | | | | llvm-svn: 1431 | |||||
* | We can do cast-add elimination even on casts that reinterpret | Chris Lattner | 2001-12-06 | 1 | -13/+11 | |
| | | | | llvm-svn: 1427 | |||||
* | Fix pessimizations on sized arrays | Chris Lattner | 2001-12-05 | 1 | -2/+4 | |
| | | | | llvm-svn: 1423 | |||||
* | Hrm, don't do debugging output when debugging is off. :( | Chris Lattner | 2001-12-05 | 1 | -3/+3 | |
| | | | | llvm-svn: 1420 | |||||
* | Fixes to type conversion stuff to match induction variables more frequently | Chris Lattner | 2001-12-05 | 1 | -19/+119 | |
| | | | | llvm-svn: 1417 | |||||
* | Remove printouts | Chris Lattner | 2001-12-04 | 1 | -2/+7 | |
| | | | | llvm-svn: 1413 | |||||
* | Renamed inst_const_iterator -> const_inst_iterator | Chris Lattner | 2001-12-04 | 1 | -7/+7 | |
| | | | | | | | Renamed op_const_iterator -> const_op_iterator Renamed PointerType::getValueType() -> PointerType::getElementType() llvm-svn: 1408 | |||||
* | Rename ConstPoolVal -> Constant | Chris Lattner | 2001-12-03 | 1 | -5/+4 | |
| | | | | | | | Rename ConstPool* -> Constant* Rename ConstPoolVals.h -> ConstantVals.h llvm-svn: 1407 | |||||
* | Create a new #include "Support/..." directory structure to move things | Chris Lattner | 2001-11-27 | 1 | -1/+1 | |
| | | | | | | | | from "llvm/Support/..." that are not llvm dependant. Move files and fix #includes llvm-svn: 1400 | |||||
* | Turn off debug info | Chris Lattner | 2001-11-26 | 1 | -1/+1 | |
| | | | | llvm-svn: 1396 | |||||
* | Include const prop as part of -raise | Chris Lattner | 2001-11-26 | 1 | -1/+3 | |
| | | | | llvm-svn: 1379 | |||||
* | Clean up code, implement array indexing stuff | Chris Lattner | 2001-11-26 | 1 | -423/+175 | |
| | | | | llvm-svn: 1340 | |||||
* | Remove much cruft from the MemAccessInst instruction | Chris Lattner | 2001-11-14 | 1 | -4/+4 | |
| | | | | llvm-svn: 1298 | |||||
* | Better heuristics for handling arrays | Chris Lattner | 2001-11-14 | 1 | -50/+175 | |
| | | | | llvm-svn: 1296 | |||||
* | Avoid assertion failure when taking size of unsized array. Todo item herE | Chris Lattner | 2001-11-13 | 1 | -0/+7 | |
| | | | | llvm-svn: 1286 | |||||
* | Improve raising significantly | Chris Lattner | 2001-11-08 | 1 | -54/+93 | |
| | | | | llvm-svn: 1214 | |||||
* | Fix bugs | Chris Lattner | 2001-11-06 | 1 | -1/+3 | |
| | | | | llvm-svn: 1152 | |||||
* | Fix bug with ADD nodes and malloc promotion | Chris Lattner | 2001-11-05 | 1 | -9/+29 | |
| | | | | llvm-svn: 1144 | |||||
* | Use the expression map correctly. | Chris Lattner | 2001-11-05 | 1 | -6/+3 | |
| | | | | llvm-svn: 1140 | |||||
* | Refactor code to share stuff | Chris Lattner | 2001-11-04 | 1 | -558/+2 | |
| | | | | llvm-svn: 1127 | |||||
* | * Relax restriction that prevented malloc promotion in certain cases | Chris Lattner | 2001-11-04 | 1 | -21/+22 | |
| | | | | llvm-svn: 1125 | |||||
* | * Disable debug output | Chris Lattner | 2001-11-04 | 1 | -22/+48 | |
| | | | | | | | * fix minor bug with taking datasize of unsized array type * Insert code to support speculative changes later llvm-svn: 1122 | |||||
* | Convert backward conversion of expression trees into a new more powerful ↵ | Chris Lattner | 2001-11-04 | 1 | -11/+297 | |
| | | | | | | bidirectional approach. Add transforms for more instructions. llvm-svn: 1121 | |||||
* | Minor method rename | Chris Lattner | 2001-11-04 | 1 | -4/+4 | |
| | | | | llvm-svn: 1119 | |||||
* | Add transformations for Load and GetElementPtr. Fix broken transform with shr. | Chris Lattner | 2001-11-04 | 1 | -0/+99 | |
| | | | | llvm-svn: 1118 | |||||
* | * Add comments for peepholes | Chris Lattner | 2001-11-01 | 1 | -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. :) llvm-svn: 1085 | |||||
* | Add DCE as integral part of the level raising to avoid processing ↵ | Chris Lattner | 2001-11-01 | 1 | -4/+9 | |
| | | | | | | instructions that are dead llvm-svn: 1084 | |||||
* | * Implement expression type conversion for constant values | Chris Lattner | 2001-11-01 | 1 | -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 llvm-svn: 1080 | |||||
* | * Convert getelementptr/store pairs into a single store | Chris Lattner | 2001-11-01 | 1 | -1/+26 | |
| | | | | | | * Convert getelementptr/load pairs into a single load llvm-svn: 1075 |