summaryrefslogtreecommitdiff
path: root/lib/Transforms
Commit message (Collapse)AuthorAge
...
* Change the RaiseAllocations pass to be a Pass instead of a BasicBlock pass.Chris Lattner2003-09-01
| | | | | | | | | This makes it more efficient: it doesn't have to scan the whole program, so it performs work proportional to the number of malloc/free calls in the program, not the size of the program. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8280 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: TailDuplicate/2003-08-31-UnreachableBlocks.llChris Lattner2003-08-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8276 91177308-0d34-0410-b5e6-96231b3b80d8
* Heavily refactor code:Chris Lattner2003-08-31
| | | | | | | | | | * Separate the policy decisions into a derived class [InlineSimple] * Move the inlining mechanics into a base class [Inliner] * Change the inliner to be an SCCPass, making it more structured and eventually pipelinable with other SCC passes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8257 91177308-0d34-0410-b5e6-96231b3b80d8
* Add accessor functionChris Lattner2003-08-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8253 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of the -prune-eh pass, a very simple exception handling ↵Chris Lattner2003-08-31
| | | | | | removal pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8250 91177308-0d34-0410-b5e6-96231b3b80d8
* ScalarRepl does not modify the CFG. Say so!Chris Lattner2003-08-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8243 91177308-0d34-0410-b5e6-96231b3b80d8
* Use new interface, simplifies codeChris Lattner2003-08-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8242 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the new interface, simplifies codeChris Lattner2003-08-31
| | | | | | | NOTE that these two files are _BUGGY_ and need to be fixed, just not by me :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8241 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the new interface, simplifies codeChris Lattner2003-08-31
| | | | | | | Delete a bunch of commented out code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8240 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the new interface, simplifies codeChris Lattner2003-08-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8239 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug where we considered function types equivalent even if they had ↵Chris Lattner2003-08-28
| | | | | | differing numbers of arguments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8178 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: SCCP/2003-08-26-InvokeHandling.llChris Lattner2003-08-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8152 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove special casingChris Lattner2003-08-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8144 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: Linker/2003-08-23-GlobalVarLinking.llChris Lattner2003-08-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8130 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement: Linker/2003-08-24-InheritPtrSize.llChris Lattner2003-08-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8129 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement SimplifyCFG/InvokeEliminate.llChris Lattner2003-08-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8126 91177308-0d34-0410-b5e6-96231b3b80d8
* rethrow is really the language independent primitive here. "throw" can be ↵Chris Lattner2003-08-24
| | | | | | | | | | written in terms of it and llvm.exc.setcurrent. Rework the intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8111 91177308-0d34-0410-b5e6-96231b3b80d8
* Inline invoke instructions as well as call instructionsChris Lattner2003-08-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8107 91177308-0d34-0410-b5e6-96231b3b80d8
* *** Implement inlining of Invoke instructions!Chris Lattner2003-08-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8106 91177308-0d34-0410-b5e6-96231b3b80d8
* Big diff for a small change: delete inlined functions if all callees haveChris Lattner2003-08-24
| | | | | | | | inlined the function. Implements: Inline/inline_dce.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8101 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement: Inline/cfg_preserve_test.llChris Lattner2003-08-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8099 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement SimplifyCFG/2003-08-17-FoldSwitch.ll:test5Chris Lattner2003-08-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8093 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: LowerSwitch/2003-08-23-EmptySwitch.llChris Lattner2003-08-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8087 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not consider any types that exist in the global symbol table!Chris Lattner2003-08-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8084 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: Linker/2003-08-23-RecursiveOpaqueTypeResolve.llChris Lattner2003-08-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8083 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement Linker/2003-08-23-GlobalVarLinking.ll, which should fix 176.gccChris Lattner2003-08-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8080 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: TailDup/2003-08-23-InvalidatedPointers.llChris Lattner2003-08-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8078 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: FunctionResolve/2003-08-23-ArgumentWarning.llChris Lattner2003-08-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8076 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typeoChris Lattner2003-08-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8059 91177308-0d34-0410-b5e6-96231b3b80d8
* The process of linking types can cause their addresses to become invalid. ↵Chris Lattner2003-08-22
| | | | | | For this reason, we must use TypeHandles! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8057 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement Linker/2003-08-20-OpaqueTypeResolve.llChris Lattner2003-08-22
| | | | | | | Hopefully this will fix the 176.gcc spec test as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8051 91177308-0d34-0410-b5e6-96231b3b80d8
* The word `dependent' has no `a'.Misha Brukman2003-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8030 91177308-0d34-0410-b5e6-96231b3b80d8
* Unless we CANNOT merge the arguments, do soChris Lattner2003-08-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7999 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix grammar, add commentChris Lattner2003-08-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7967 91177308-0d34-0410-b5e6-96231b3b80d8
* Spell `necessary' correctly.Misha Brukman2003-08-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7944 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement folding of switch instructions.Chris Lattner2003-08-17
| | | | | | | Implements SimplifyCFG/2003-08-17-FoldSwitch.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7923 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: SimplifyCFG/2003-08-17-BranchFoldOrdering.llChris Lattner2003-08-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7921 91177308-0d34-0410-b5e6-96231b3b80d8
* The fixme is irrelevant: if that happens, the LLVM bytecode is malformed.Chris Lattner2003-08-17
| | | | | | | This fixes testcase: SimplifyCFG/2003-08-17-BranchFold.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7919 91177308-0d34-0410-b5e6-96231b3b80d8
* Factory methods for function passes now return type FunctionPass *.Brian Gaeke2003-08-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7839 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix FIXME by removing FIXMEChris Lattner2003-08-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7832 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement instcombine optimizations:Chris Lattner2003-08-13
| | | | | | | | | (A <setcc1> B) logicalop (A <setcc2> B) -> (A <setcc3> B) or true or false Where setcc[123] is one of the 6 setcc instructions, and logicalop is one of: And, Or, Xor git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7828 91177308-0d34-0410-b5e6-96231b3b80d8
* Generalize some of the add tests to allow for reassociation to take placeChris Lattner2003-08-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7825 91177308-0d34-0410-b5e6-96231b3b80d8
* Factory methods for FunctionPasses now return type FunctionPass *.Brian Gaeke2003-08-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7823 91177308-0d34-0410-b5e6-96231b3b80d8
* Assign arguments different ranks so they get grouped togetherChris Lattner2003-08-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7813 91177308-0d34-0410-b5e6-96231b3b80d8
* Removing the pool allocator from the main CVS tree.John Criswell2003-08-13
| | | | | | | Use the poolalloc module in CVS from now on. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7810 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement InstCombine/2003-08-12-AllocaNonNull.llChris Lattner2003-08-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7807 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not cannonicalize (X != 0) into (cast X to bool)Chris Lattner2003-08-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7806 91177308-0d34-0410-b5e6-96231b3b80d8
* Change cannonicalization rules: add X,X is represented as multiplies, multipliesChris Lattner2003-08-13
| | | | | | | of a power of two are represented as a shift. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7803 91177308-0d34-0410-b5e6-96231b3b80d8
* Give std::map<BasicBlock *, BasicBlock *> the short name BBMap, becauseBrian Gaeke2003-08-12
| | | | | | | | | | | | | | | it's used 7 different times. Rename `getBackEdges' to `findAndInstrumentBackEdges', for clarity. Remove some excess whitespace and commented-out code. Use shorter forms of CallInst ctors. Do not make `reopt_threshold' visible to the LLVM program, and do not pass it to the call to `reoptimizerInitialize'. Don't pass the GlobalVariable representing it to any of our helper methods. `reopt_threshold' is an internal parameter of the reoptimizer, which InstLoops does not need to know about. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7794 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow pulling logical operations through shifts.Chris Lattner2003-08-12
| | | | | | | This implements InstCombine/shift.ll:test14* git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7793 91177308-0d34-0410-b5e6-96231b3b80d8