summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/DCE.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Do not use typeinfo to identify pass in pass manager.Devang Patel2007-05-011-0/+7
| | | | llvm-svn: 36632
* Apply the VISIBILITY_HIDDEN field to the remaining anonymous classes inReid Spencer2007-02-051-1/+2
| | | | | | | the Transforms library. This reduces debug library size by 132 KB, debug binary size by 376 KB, and reduces link time for llvm tools slightly. llvm-svn: 33939
* Inherit BasicBlockPass directly from Pass.Devang Patel2007-01-251-1/+1
| | | | llvm-svn: 33511
* Switch over Transforms/Scalar to use the STATISTIC macro. For each statisticChris Lattner2006-12-191-8/+7
| | | | | | | converted, we lose a static initializer. This also allows GCC to emit warnings about unused statistics. llvm-svn: 32690
* Detemplatize the Statistic class. The only type it is instantiated withChris Lattner2006-12-061-2/+2
| | | | | | is 'unsigned'. llvm-svn: 32279
* eliminate RegisterOpt. It does the same thing as RegisterPass.Chris Lattner2006-08-271-2/+2
| | | | llvm-svn: 29925
* clean up and modernize this pass.Chris Lattner2005-05-081-24/+18
| | | | llvm-svn: 21776
* Remove trailing whitespaceMisha Brukman2005-04-211-5/+5
| | | | 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
* Make the create...() functions for some of these passes return a FunctionPass *.Brian Gaeke2004-07-271-1/+1
| | | | llvm-svn: 15276
* 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
* This code really wants to iterate over the OPERANDS of an instruction, notChris Lattner2004-04-211-3/+2
| | | | | | | | over its USES. If it's dead it doesn't have any uses! :) Thanks to the fabulous and mysterious Bill Wendling for pointing this out. :) llvm-svn: 13102
* Finegrainify namespacificationChris Lattner2004-01-091-5/+3
| | | | llvm-svn: 10725
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-1/+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
* - Rename AnalysisUsage::preservesAll to getPreservesAll & preservesCFG toChris Lattner2002-10-211-2/+2
| | | | | | setPreservesCFG to be less confusing. llvm-svn: 4255
* Updates to work with recent Statistic's changes:Chris Lattner2002-10-011-7/+7
| | | | | | | | | | | | * 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-2/+2
| | | | | | | | | | | | | | | * 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-4/+4
| | | | llvm-svn: 3016
* MEGAPATCH checkin.Chris Lattner2002-06-251-11/+8
| | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2779
* Simplify the interface to local DCE and Constant propChris Lattner2002-05-261-1/+1
| | | | llvm-svn: 2749
* Add support for printing out statistics information when -stats is added toChris Lattner2002-05-101-2/+8
| | | | | | 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-22/+3
| | | | llvm-svn: 2516
* * Remove all cfg simplification stuff for a new cfg simplify pass (todo)Chris Lattner2002-05-071-330/+85
| | | | | | * Convert to worklist instead of iterative algorithm llvm-svn: 2510
* Merge blocks like this:Chris Lattner2002-05-061-26/+39
| | | | | | | | | | void "test3"(bool %T) { br bool %T, label %BB1, label %BB1 BB1: ret void } llvm-svn: 2472
* Eliminate duplicate or unneccesary #include'sChris Lattner2002-04-291-2/+0
| | | | llvm-svn: 2397
* Add new optional getPassName() virtual function that a Pass can overrideChris Lattner2002-04-291-0/+3
| | | | | | to make debugging output a lot nicer. llvm-svn: 2395
* Split ConstantVals.h into Constant.h and Constants.hChris Lattner2002-04-281-1/+1
| | | | llvm-svn: 2378
* * Rename MethodPass class to FunctionPassChris Lattner2002-04-271-8/+8
| | | | | | | | | | | | | | | - 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
* Change Constant::getNullConstant to Constant::getNullValueChris Lattner2002-04-271-3/+1
| | | | llvm-svn: 2323
* Add #includes to make up for #includes pruned out of header files.Chris Lattner2002-04-091-0/+1
| | | | llvm-svn: 2207
* s/Method/FunctionChris Lattner2002-04-081-1/+0
| | | | | | Remove extraneous #includes of llvm/Assembly/Writer llvm-svn: 2178
* Change references from Method to FunctionChris Lattner2002-03-261-14/+14
| | | | | | change references from MethodARgument to FunctionArgument llvm-svn: 1991
* Change over to use new style pass mechanism, now passes only expose smallChris Lattner2002-02-261-15/+43
| | | | | | creation functions in their public header file, unless they can help it. llvm-svn: 1816
* * Pull BasicBlock::pred_* and BasicBlock::succ_* out of BasicBlock.h and intoChris Lattner2002-02-121-18/+19
| | | | | | | | | llvm/Support/CFG.h * Make pred & succ iterators for intervals global functions * Add #includes that are now neccesary because BasicBlock.h doesn't include InstrTypes.h anymore llvm-svn: 1750
* Implement new DeadInstElmination passChris Lattner2002-01-231-1/+5
| | | | | | remove old comment llvm-svn: 1555
* Move stuff out of the Optimizations directories into the appropriate TransformsChris Lattner2002-01-211-8/+8
| | | | | | directories. Eliminate the opt namespace. llvm-svn: 1520
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-2/+2
| | | | llvm-svn: 1503
* Rename ConstPoolVal -> ConstantChris Lattner2001-12-031-3/+3
| | | | | | | 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-1/+1
| | | | llvm-svn: 1405
* 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 llvm-svn: 1400
* Avoid making a broken transformation!Chris Lattner2001-11-031-20/+33
| | | | llvm-svn: 1115
* Expose the low level DCE mechanism to external usersChris Lattner2001-11-011-10/+20
| | | | | | Refactor code to support it llvm-svn: 1083
* Simplify DCE code a lotChris Lattner2001-11-011-26/+5
| | | | llvm-svn: 1079
* Convert optimizations to the pass infrastructureChris Lattner2001-10-181-6/+19
| | | | llvm-svn: 873
* Commit more code over to new cast styleChris Lattner2001-10-021-7/+7
| | | | llvm-svn: 697
* Pull predecessor and successor iterators out of the CFG*.h files, and plop ↵Chris Lattner2001-10-011-18/+15
| | | | | | | | | them into the BasicBlock class where they should be. pred_begin/pred_end become methods on BasicBlock, and the cfg namespace isn't used anymore. llvm-svn: 691
* * Eliminate constant pool dependancies:Chris Lattner2001-09-071-29/+6
| | | | | | * Eliminate DoRemoveUnusedConstants llvm-svn: 453
OpenPOWER on IntegriCloud