summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/GlobalDCE.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Remove useless statistic, fix some slightly broken logicChris Lattner2004-07-181-8/+4
| | | | llvm-svn: 14958
* bug 122:Reid Spencer2004-07-181-22/+17
| | | | | | | - Replace ConstantPointerRef usage with GlobalValue usage - Rename methods to get ride of ConstantPointerRef usage llvm-svn: 14945
* Finegrainify namespacificationChris Lattner2003-11-211-4/+2
| | | | llvm-svn: 10138
* 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
* Global variables with APPENDING linkage are very important to keep around!Chris Lattner2003-09-201-3/+6
| | | | llvm-svn: 8632
* This is effectively a complete rewrite of the globaldce algorithm, resultingChris Lattner2003-09-161-177/+104
| | | | | | | | | | | | | | | in it being both shorter and more effective. It no longer depends on the callgraph, so one FIXME has been fixed. Additionally, this pass was not able to delete recursive (but dead) functions if they were pointed to by global variables which were also dead. In fact this pass had a lot of problems deleting functions which were only pointed to by dead globals and other stuff. Fixing this means that the entire EH library should be stripped away now from programs that don't use sjlj or exceptions. llvm-svn: 8567
* Ugh, a bug fix needed because of the bug in the CallGraph codeChris Lattner2003-09-151-2/+4
| | | | llvm-svn: 8519
* Fixed a segfault in gccld.John Criswell2003-08-071-2/+4
| | | | | | | | The original code does not work because the value from WorkList.end() is invalidated once WorkList.erase() is called. To ensure proper functionality, we must ensure that WorkList.erase() is always called before WorkList.end(). llvm-svn: 7673
* Add support to globaldce for deleting dead function prototypesChris Lattner2003-06-261-1/+7
| | | | llvm-svn: 6918
* Use methods that are more explanatoryChris Lattner2002-10-131-1/+1
| | | | llvm-svn: 4142
* Updates to work with recent Statistic's changes:Chris Lattner2002-10-011-41/+40
| | | | | | | | | | | | * 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
* - Made GlobalDCE worklist driven, making it more successful. Now can handleChris Lattner2002-08-181-17/+176
| | | | | | cases like: test/Regression/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll llvm-svn: 3381
* - Cleaned up the interface to AnalysisUsage to take analysis class namesChris Lattner2002-08-081-1/+1
| | | | | | | instead of ::ID's. - Pass::getAnalysis<> now no longer takes an optional argument llvm-svn: 3265
* * 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: 3112
* Eliminate several include/llvm/Transforms/IPO/*.h files, moving their ↵Chris Lattner2002-07-241-1/+1
| | | | | | contents into IPO.h llvm-svn: 3043
* *** empty log message ***Chris Lattner2002-07-231-2/+1
| | | | llvm-svn: 3016
* Seperate stats for DCE'd functions and varsChris Lattner2002-07-181-3/+4
| | | | llvm-svn: 2961
* *** empty log message ***Chris Lattner2002-07-181-2/+3
| | | | llvm-svn: 2959
* MEGAPATCH checkin.Chris Lattner2002-06-251-10/+9
| | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2778
* Add support for printing out statistics information when -stats is added toChris Lattner2002-05-101-0/+5
| | | | | | the command line llvm-svn: 2601
* Eliminate dead global variablesChris Lattner2002-04-291-2/+20
| | | | llvm-svn: 2400
* 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/+2
| | | | | | to make debugging output a lot nicer. llvm-svn: 2395
* * Rename MethodPass class to FunctionPassChris Lattner2002-04-271-7/+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
* Change references to the Method class to be references to the FunctionChris Lattner2002-04-071-17/+17
| | | | | | | class. The Method class is obsolete (renamed) and all references to it are being converted over to Function. llvm-svn: 2144
* Take CallGraph out of the CFG namespace. It has nothing to do with CFGsChris Lattner2002-03-061-9/+9
| | | | llvm-svn: 1820
* Change over to use new style pass mechanism, now passes only expose smallChris Lattner2002-02-261-13/+23
| | | | | | creation functions in their public header file, unless they can help it. llvm-svn: 1816
* Convert xforms over to new pass structure.Chris Lattner2002-01-311-4/+13
| | | | llvm-svn: 1605
* Implement a more powerful, simpler, pass system. This pass system can figureChris Lattner2002-01-211-13/+7
| | | | | | | | | out how to run a collection of passes optimially given their behaviors and charactaristics. Convert code to use it. llvm-svn: 1507
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-4/+4
| | | | llvm-svn: 1503
* 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
* Implement DCE of global valuesChris Lattner2001-11-261-0/+59
llvm-svn: 1360
OpenPOWER on IntegriCloud