summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ConstantProp.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Detemplatize the Statistic class. The only type it is instantiated withChris Lattner2006-12-061-1/+1
| | | | | | is 'unsigned'. llvm-svn: 32279
* eliminate RegisterOpt. It does the same thing as RegisterPass.Chris Lattner2006-08-271-1/+2
| | | | llvm-svn: 29925
* Remove trailing whitespaceMisha Brukman2005-04-211-3/+3
| | | | llvm-svn: 21427
* Prototype these functions more accuratelyChris Lattner2004-09-201-1/+1
| | | | llvm-svn: 16432
* Changes For Bug 352Reid Spencer2004-09-011-1/+1
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* Changes to fix up the inst_iterator to pass to boost iterator checks. ThisChris Lattner2004-04-271-1/+4
| | | | | | patch was graciously contributed by Vladimir Prus. llvm-svn: 13185
* Constant propagation should remove the dead instructionsChris Lattner2004-04-131-0/+4
| | | | llvm-svn: 12917
* Add header file I accidentally removed in teh shuffleChris Lattner2004-01-121-0/+1
| | | | llvm-svn: 10795
* Remove unneeded #includeChris Lattner2004-01-121-1/+0
| | | | llvm-svn: 10788
* Finegrainify namespacificationChris Lattner2004-01-091-5/+2
| | | | llvm-svn: 10725
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* Added LLVM project notice to the top of every C++ source file.John Criswell2003-10-201-0/+7
| | | | | | Header files will be on the way. llvm-svn: 9298
* Hopefully, the final fix for `[Pp]ropogate'.Misha Brukman2003-05-201-8/+8
| | | | llvm-svn: 6251
* - Rename AnalysisUsage::preservesAll to getPreservesAll & preservesCFG toChris Lattner2002-10-211-1/+1
| | | | | | setPreservesCFG to be less confusing. llvm-svn: 4255
* Updates to work with recent Statistic's changes:Chris Lattner2002-10-011-3/+3
| | | | | | | | | | | | * Renamed StatisticReporter.h/cpp to Statistic.h/cpp * Broke constructor to take two const char * arguments instead of one, so that indendation can be taken care of automatically. * Sort the list by pass name when printing * Make sure to print all statistics as a group, instead of randomly when the statistics dtors are called. * Updated ProgrammersManual with new semantics. llvm-svn: 4002
* * Add support for different "PassType's"Chris Lattner2002-07-261-1/+1
| | | | | | | | | | | | | | | * Add new RegisterOpt/RegisterAnalysis templates for registering passes that are to show up in opt or analyze * Register Analyses now * Change optimizations to use RegisterOpt instead of RegisterPass * Add support for different "PassType's" * Add new RegisterOpt/RegisterAnalysis templates for registering passes that are to show up in opt or analyze * Register Analyses now * Change optimizations to use RegisterOpt instead of RegisterPass * Remove getPassName implementations from various subclasses llvm-svn: 3113
* *** empty log message ***Chris Lattner2002-07-231-2/+2
| | | | llvm-svn: 3016
* MEGAPATCH checkin.Chris Lattner2002-06-251-2/+2
| | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2779
* Trivial cleanupsChris Lattner2002-05-131-2/+2
| | | | llvm-svn: 2617
* Add support for printing out statistics information when -stats is added toChris Lattner2002-05-101-1/+5
| | | | | | the command line llvm-svn: 2601
* Merge all individual .h files into a single Scalar.h fileChris Lattner2002-05-071-1/+1
| | | | llvm-svn: 2537
* Factor code out to the TransformUtils libraryChris Lattner2002-05-071-80/+2
| | | | llvm-svn: 2516
* * Eliminate dead code that should have been removed in last revisionChris Lattner2002-05-061-146/+50
| | | | | | | | | * Convert main constant propogation pass to be worklist driven instead of iterative. * -constprop pass no longer "constant propogates" terminator instructions - CFG is now preserved! llvm-svn: 2502
* * Use simplified interface to constant propogation stuff.Chris Lattner2002-05-061-35/+8
| | | | | | | | * Remove dead PHI case (which could not work due to getNumOperands rather than getNumIncomingValues. This really belongs in InstCombine, anyway so we'll move it there. llvm-svn: 2497
* Implement constant propogation of shift instructionsChris Lattner2002-05-061-4/+33
| | | | llvm-svn: 2471
* Add new optional getPassName() virtual function that a Pass can overrideChris Lattner2002-04-291-0/+2
| | | | | | to make debugging output a lot nicer. llvm-svn: 2395
* Tighten up the AnalysisUsage of lots of passes, primarily to correctly ↵Chris Lattner2002-04-281-0/+6
| | | | | | indicate whether or not they invalidate the CFGA llvm-svn: 2386
* Split ConstantVals.h into Constant.h and Constants.hChris Lattner2002-04-281-1/+0
| | | | llvm-svn: 2378
* * Rename MethodPass class to FunctionPassChris Lattner2002-04-271-2/+2
| | | | | | | | | | | | | | | - 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/FunctionChris Lattner2002-04-081-1/+1
| | | | | | Remove extraneous #includes of llvm/Assembly/Writer llvm-svn: 2178
* ConstantHandling moved into VMCore libraryChris Lattner2002-04-081-1/+1
| | | | llvm-svn: 2165
* Change references to the Method class to be references to the FunctionChris Lattner2002-04-071-6/+6
| | | | | | | class. The Method class is obsolete (renamed) and all references to it are being converted over to Function. llvm-svn: 2144
* Fix bug: test/Regression/Other/2002-03-11-ConstPropCrash.llChris Lattner2002-03-111-2/+4
| | | | llvm-svn: 1858
* Change over to use new style pass mechanism, now passes only expose smallChris Lattner2002-02-261-11/+17
| | | | | | creation functions in their public header file, unless they can help it. llvm-svn: 1816
* Move stuff out of the Optimizations directories into the appropriate TransformsChris Lattner2002-01-211-14/+11
| | | | | | directories. Eliminate the opt namespace. llvm-svn: 1520
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-1/+1
| | | | llvm-svn: 1503
* Assertion could never fail because another one would in it's place. :)Chris Lattner2001-12-131-1/+1
| | | | llvm-svn: 1449
* Rename ConstPoolVal -> ConstantChris Lattner2001-12-031-12/+12
| | | | | | | Rename ConstPool* -> Constant* Rename ConstPoolVals.h -> ConstantVals.h llvm-svn: 1407
* Split the PHINode class out from the iOther.h file into the iPHINode.h fileChris Lattner2001-12-031-0/+1
| | | | llvm-svn: 1405
* Expose constant propogation of an instruction in a clean wayChris Lattner2001-11-261-37/+24
| | | | llvm-svn: 1376
* Implemented constant propogation of cast instructionsChris Lattner2001-10-311-0/+27
| | | | llvm-svn: 1064
* Convert optimizations to the pass infrastructureChris Lattner2001-10-181-1/+1
| | | | llvm-svn: 873
* Commit more code over to new cast styleChris Lattner2001-10-021-12/+11
| | | | llvm-svn: 697
* Convert more code to use new style castsChris Lattner2001-10-011-5/+5
| | | | | | Eliminate old style casts from value.h llvm-svn: 696
* Add support for new style castsChris Lattner2001-10-011-2/+2
| | | | llvm-svn: 694
* * Supoprt global constantsChris Lattner2001-09-071-55/+13
| | | | | | | | * Remove support for local constant pools * Eliminate constant pool merging method, which is no longer neccesary * Disable invalid optimization (todo: fix it) llvm-svn: 452
* Broad superficial changes:Chris Lattner2001-07-071-3/+3
| | | | | | | | | * Renamed getOpcode to getOpcodeName * Changed getOpcodeName to return a const char * instead of string * Added a getOpcode method to replace getInstType * Changed code to use getOpcode instead of getInstType llvm-svn: 152
* Changed the fundemental architecture of Operands for Instructions. NowChris Lattner2001-07-071-9/+8
| | | | | | | | | | | Operands are maintained as a vector<Use> in the User class, and operator iterators are provided as before. Getting an operand no longer requires a virtual function call. WARNING: getOperand(x) where x >= getNumOperands() will now assert instead of returning null! llvm-svn: 149
* Optimizations got their own header filesChris Lattner2001-06-301-9/+9
| | | | | | | Optimizations now live in the 'opt' namespace include/llvm/Opt was renamed include/llvm/Optimizations llvm-svn: 113
* Export ConstantFoldTerminator, allow it to fold conditional branches toChris Lattner2001-06-291-8/+30
| | | | | | the same label. llvm-svn: 107
OpenPOWER on IntegriCloud