summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ADCE.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make iostream #inclusion explicitChris Lattner2006-01-221-0/+1
| | | | llvm-svn: 25514
* Make sure that anything using the ADCE pass pulls in the UnifyFunctionExitNodesChris Lattner2005-10-241-0/+2
| | | | | | code llvm-svn: 23931
* preserve calling conventions when hacking on codeChris Lattner2005-05-141-1/+2
| | | | llvm-svn: 22024
* Eliminate tabs and trailing spacesJeff Cohen2005-04-231-1/+1
| | | | llvm-svn: 21480
* Remove trailing whitespaceMisha Brukman2005-04-211-14/+14
| | | | llvm-svn: 21427
* Remove use of bind_objChris Lattner2005-02-221-2/+3
| | | | llvm-svn: 20276
* Do not mark obviously unreachable blocks live when processing PHI nodes,Chris Lattner2005-02-171-40/+61
| | | | | | | | | | | | and handle incomplete control dependences correctly. This fixes: Regression/Transforms/ADCE/dead-phi-edge.ll -> a missed optimization Regression/Transforms/ADCE/dead-phi-edge.ll -> a compiler crash distilled from QT4 llvm-svn: 20227
* Change indentation of a whole bunch of code, no real changes here.Chris Lattner2004-12-121-105/+105
| | | | llvm-svn: 18843
* More substantial simplifications and speedups. This makes ADCE about 20% fasterChris Lattner2004-12-121-97/+43
| | | | | | in some cases. llvm-svn: 18842
* More minor microoptimizationsChris Lattner2004-12-121-6/+4
| | | | llvm-svn: 18841
* Remove some more set operationsChris Lattner2004-12-121-6/+2
| | | | llvm-svn: 18840
* Reduce number of set operations.Chris Lattner2004-12-121-2/+1
| | | | llvm-svn: 18839
* Getting ADCE to interact well with unreachable instructions seems like a ↵Chris Lattner2004-10-171-2/+3
| | | | | | | | | | | nontrivial exercise that I'm not interested in tackling right now. Just punt and treat them like unwind's. This 'fixes' test/Regression/Transforms/ADCE/unreachable-function.ll llvm-svn: 17106
* Add noteChris Lattner2004-10-161-0/+1
| | | | llvm-svn: 17043
* Prototype these functions more accuratelyChris Lattner2004-09-201-1/+1
| | | | llvm-svn: 16432
* Convert code to compile with vc7.1.Reid Spencer2004-09-151-1/+3
| | | | | | Patch contributed by Paolo Invernizzi. Thanks Paolo! llvm-svn: 16368
* Changes For Bug 352Reid Spencer2004-09-011-4/+4
| | | | | | | | 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
* Fixes working towards PR341Chris Lattner2004-07-151-2/+2
| | | | llvm-svn: 14839
* Do not mark instructions in unreachable sections of the function as live.Chris Lattner2004-05-041-2/+5
| | | | | | This fixes PR332 and ADCE/2004-05-04-UnreachableBlock.llx llvm-svn: 13349
* Simplify code a bit, and fix a bug that was breaking perlbmkChris Lattner2004-04-101-22/+28
| | | | llvm-svn: 12814
* Fix a bug in my checkin last night that was breaking programs using invoke.Chris Lattner2004-04-101-1/+1
| | | | llvm-svn: 12813
* Fix previous patchChris Lattner2004-04-101-7/+5
| | | | llvm-svn: 12811
* Correctly update countersChris Lattner2004-04-101-5/+11
| | | | llvm-svn: 12810
* Simplify code a bit, and use alias analysis to allow us to delete unusedChris Lattner2004-04-101-11/+42
| | | | | | call and invoke instructions that are known to not write to memory. llvm-svn: 12807
* Fix the count of the number of instructions removedChris Lattner2004-02-011-0/+1
| | | | llvm-svn: 11049
* Fix ADCE/2003-12-19-MergeReturn.llxChris Lattner2003-12-191-7/+8
| | | | llvm-svn: 10539
* Do not crash when deleing a region with a dead invoke instructionChris Lattner2003-11-221-0/+4
| | | | llvm-svn: 10161
* Minor cleanups and simplificationsChris Lattner2003-11-211-1/+1
| | | | llvm-svn: 10127
* Start using the nicer terminator auto-insertion APIChris Lattner2003-11-201-3/+3
| | | | llvm-svn: 10111
* Fix PR116Chris Lattner2003-11-161-0/+12
| | | | llvm-svn: 10032
* 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
* Fix spelling.Misha Brukman2003-10-101-5/+5
| | | | llvm-svn: 9027
* Rename Function::getEntryNode -> getEntryBlockChris Lattner2003-09-201-1/+1
| | | | llvm-svn: 8625
* Renamed DominatorTree::Node::getNode() -> getBlock()Chris Lattner2003-09-111-3/+3
| | | | llvm-svn: 8469
* Unwind instructions are intrinsically alive, just like returnsChris Lattner2003-09-101-3/+3
| | | | llvm-svn: 8462
* The word `dependent' has no `a'.Misha Brukman2003-08-211-2/+2
| | | | llvm-svn: 8030
* Spell `necessary' correctly.Misha Brukman2003-08-181-1/+1
| | | | llvm-svn: 7944
* DEBUG got moved to Support/Debug.hChris Lattner2003-08-011-1/+2
| | | | llvm-svn: 7492
* Fix bug: ADCE/2003-06-24-BadSuccessor.llChris Lattner2003-06-241-12/+35
| | | | llvm-svn: 6891
* Do not mark ALL terminators live if any instruciton in the block is live. ↵Chris Lattner2003-06-241-2/+23
| | | | | | | | | We only want to mark it live if it is an unconditional branch. This fixes bug: ADCE/2002-05-28-Crash.ll and makes this pass _much_ more useful. llvm-svn: 6887
* Fix bug: ADCE/2003-06-11-InvalidCFG.llChris Lattner2003-06-161-5/+14
| | | | | | | This was because we were deleting large chunks of functions without an exit block, because the post-dominance information was not useful. This broke crafty and twolf. llvm-svn: 6698
* Remove using declarationsChris Lattner2003-05-221-11/+9
| | | | llvm-svn: 6306
* Fix bug: ADCE/2003-04-25-PHIPostDominateProblem.llChris Lattner2003-04-251-9/+10
| | | | llvm-svn: 5952
* Remove unnecesary &*'sChris Lattner2003-04-231-2/+2
| | | | llvm-svn: 5872
* Rename Instruction::hasSideEffects() -> mayWriteToMemory()Chris Lattner2003-02-241-1/+1
| | | | llvm-svn: 5620
* Fix bug: ADCE/2003-01-22-PredecessorProblem.llChris Lattner2003-01-231-7/+18
| | | | llvm-svn: 5405
* Updates to work with recent Statistic's changes:Chris Lattner2002-10-011-5/+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
* Fix the last of the silly bugs I just introduced. :(Chris Lattner2002-09-101-3/+3
| | | | llvm-svn: 3674
* Clean up code due to auto-insert constructorsChris Lattner2002-09-101-4/+3
| | | | llvm-svn: 3665
OpenPOWER on IntegriCloud