summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/IPConstantPropagation.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in comment.Nick Lewycky2007-05-061-1/+1
| | | | llvm-svn: 36873
* Drop 'const'Devang Patel2007-05-031-2/+2
| | | | llvm-svn: 36662
* Use 'static const char' instead of 'static const int'.Devang Patel2007-05-021-2/+2
| | | | | | | Due to darwin gcc bug, one version of darwin linker coalesces static const int, which defauts PassID based pass identification. llvm-svn: 36652
* Do not use typeinfo to identify pass in pass manager.Devang Patel2007-05-011-0/+4
| | | | 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
* For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoidReid Spencer2007-01-301-1/+1
| | | | | | confusion with external linkage types. llvm-svn: 33663
* Eliminate static ctors due to Statistic objectsChris Lattner2006-12-191-5/+4
| | | | llvm-svn: 32693
* 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-3/+3
| | | | llvm-svn: 29925
* Remove trailing whitespaceMisha Brukman2005-04-211-5/+5
| | | | llvm-svn: 21427
* This mega patch converts us from using Function::a{iterator|begin|end} toChris Lattner2005-03-151-4/+4
| | | | | | | | using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*. This patch is contributed by Gabor Greif, thanks! llvm-svn: 20597
* Only cound if we actually made a change.Chris Lattner2004-12-111-3/+6
| | | | llvm-svn: 18800
* Remove note to selfChris Lattner2004-11-141-4/+0
| | | | llvm-svn: 17734
* If a function always returns a constant, replace all calls sites with thatChris Lattner2004-11-141-11/+80
| | | | | | | | | | | constant value. This makes the return value dead and allows for simplification in the caller. This implements IPConstantProp/return-constant.ll This triggers several dozen times throughout SPEC. llvm-svn: 17730
* Actually, leave the check in. This prevents us from counting dead argumentsChris Lattner2004-11-111-1/+1
| | | | | | as IPCP opportunities. llvm-svn: 17680
* Fix bug: IPConstantProp/deadarg.llChris Lattner2004-11-111-2/+2
| | | | llvm-svn: 17679
* Make IP Constant prop more aggressive about handling self recursive calls.Chris Lattner2004-11-101-2/+4
| | | | | | This implements IPConstantProp/recursion.ll llvm-svn: 17666
* Do not let dead constant expressions hanging off of functions prevent IPCP.Chris Lattner2004-11-091-0/+3
| | | | | | | This allows to elimination of a bunch of global pool descriptor args from programs being pool allocated (and is also generally useful!) llvm-svn: 17657
* 'Pass' should now not be derived from by clients. Instead, they should deriveChris Lattner2004-09-201-4/+4
| | | | | | | from ModulePass. Instead of implementing Pass::run, then should implement ModulePass::runOnModule. llvm-svn: 16436
* 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
* Avoid an unnecessary isa<Constant>.Reid Spencer2004-07-181-3/+1
| | | | llvm-svn: 14963
* bug 122:Reid Spencer2004-07-181-5/+1
| | | | | | - Minimize redundant isa<GlobalValue> usage llvm-svn: 14948
* Finegrainify namespacificationChris Lattner2003-11-211-4/+3
| | | | llvm-svn: 10138
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* Propagating constants to arguments can make other arguments constant. For nowChris Lattner2003-10-271-5/+15
| | | | | | do something dumb, and inefficient, but more complete. llvm-svn: 9542
* We might as well strip off any CPRs before propagationChris Lattner2003-10-231-1/+4
| | | | llvm-svn: 9437
* Check in initial version of ipcpChris Lattner2003-10-231-0/+110
llvm-svn: 9423
OpenPOWER on IntegriCloud