Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | split dom frontier handling stuff out to its own DominanceFrontier header, | Chris Lattner | 2011-01-02 | 1 | -1/+1 |
| | | | | | | so that Dominators.h is *just* domtree. Also prune #includes a bit. llvm-svn: 122714 | ||||
* | Don't keep track of inserted phis in PromoteMemoryToRegister: the information | Duncan Sands | 2010-11-22 | 1 | -8/+3 |
| | | | | | | is never used. Patch by Cameron Zwarich. llvm-svn: 119963 | ||||
* | Have a few places that want to simplify phi nodes use SimplifyInstruction | Duncan Sands | 2010-11-16 | 1 | -3/+4 |
| | | | | | | rather than calling hasConstantValue. No intended functionality change. llvm-svn: 119352 | ||||
* | remove some dead code. | Chris Lattner | 2010-08-18 | 1 | -8/+0 |
| | | | | llvm-svn: 111344 | ||||
* | Don't look up the "dbg" metadata kind by name. | Dan Gohman | 2010-07-20 | 1 | -4/+5 |
| | | | | llvm-svn: 108961 | ||||
* | cache result of operator* | Gabor Greif | 2010-07-09 | 1 | -3/+5 |
| | | | | llvm-svn: 107966 | ||||
* | Use A.append(...) instead of A.insert(A.end(), ...) when A is a | Dan Gohman | 2010-06-21 | 1 | -3/+2 |
| | | | | | | SmallVector, and other SmallVector simplifications. llvm-svn: 106452 | ||||
* | Copy location info for current function argument from dbg.declare if ↵ | Devang Patel | 2010-06-04 | 1 | -4/+2 |
| | | | | | | respective store instruction does not have any location info. llvm-svn: 105490 | ||||
* | Fix typo. | Devang Patel | 2010-05-28 | 1 | -1/+1 |
| | | | | llvm-svn: 104914 | ||||
* | Fix typo. | Devang Patel | 2010-05-28 | 1 | -1/+1 |
| | | | | llvm-svn: 104913 | ||||
* | Do not drop location info for inlined function args. | Devang Patel | 2010-05-27 | 1 | -0/+5 |
| | | | | llvm-svn: 104884 | ||||
* | Fixes for Microsoft Visual Studio 2010, from Steven Watanabe! | Douglas Gregor | 2010-05-11 | 1 | -1/+1 |
| | | | | llvm-svn: 103457 | ||||
* | Wrap const MDNode * inside DIDescriptor. | Devang Patel | 2010-05-07 | 1 | -1/+1 |
| | | | | llvm-svn: 103295 | ||||
* | Use overloaded operators instead of DIDescriptor::getNode() | Devang Patel | 2010-05-07 | 1 | -1/+1 |
| | | | | llvm-svn: 103276 | ||||
* | rename use_const_iterator to const_use_iterator for consistency's sake | Gabor Greif | 2010-03-25 | 1 | -1/+1 |
| | | | | llvm-svn: 99564 | ||||
* | There are two ways of checking for a given type, for example isa<PointerType>(T) | Duncan Sands | 2010-02-16 | 1 | -6/+6 |
| | | | | | | | and T->isPointerTy(). Convert most instances of the first form to the second form. Requested by Chris. llvm-svn: 96344 | ||||
* | mem2reg erases the dbg.declare intrinsics that it converts to dbg.val intrinsics | Victor Hernandez | 2010-01-29 | 1 | -3/+13 |
| | | | | llvm-svn: 94763 | ||||
* | some cleanups. | Chris Lattner | 2010-01-27 | 1 | -14/+15 |
| | | | | llvm-svn: 94649 | ||||
* | no need to check for null | Chris Lattner | 2010-01-27 | 1 | -1/+1 |
| | | | | llvm-svn: 94648 | ||||
* | When converting dbg.declare to dbg.value, attach promoted store's debug ↵ | Victor Hernandez | 2010-01-27 | 1 | -1/+4 |
| | | | | | | metadata to dbg.value llvm-svn: 94634 | ||||
* | Switch AllocaDbgDeclares to SmallVector and don't leak DIFactory | Victor Hernandez | 2010-01-26 | 1 | -1/+4 |
| | | | | llvm-svn: 94567 | ||||
* | In mem2reg, for all alloca/stores that get promoted where the alloca has an ↵ | Victor Hernandez | 2010-01-26 | 1 | -1/+52 |
| | | | | | | associated llvm.dbg.declare instrinsic, insert an llvm.dbg.var intrinsic before each store. llvm-svn: 94493 | ||||
* | Revert r94260 until findDbgDeclare() is made more efficient | Victor Hernandez | 2010-01-25 | 1 | -38/+3 |
| | | | | llvm-svn: 94432 | ||||
* | In mem2reg, for all alloca/stores that get promoted where the alloca has an ↵ | Victor Hernandez | 2010-01-23 | 1 | -3/+38 |
| | | | | | | associated llvm.dbg.declare instrinsic, insert an llvm.dbg.var intrinsic before each store llvm-svn: 94260 | ||||
* | Keep ignoring pointer-to-pointer bitcasts | Victor Hernandez | 2010-01-22 | 1 | -3/+0 |
| | | | | llvm-svn: 94194 | ||||
* | DbgInfoIntrinsic no longer appear in an instruction's use list | Victor Hernandez | 2010-01-21 | 1 | -19/+4 |
| | | | | llvm-svn: 94113 | ||||
* | Use do+while instead of while for loops which obviously have a | Dan Gohman | 2010-01-05 | 1 | -2/+2 |
| | | | | | | non-zero trip count. Use SmallVector's pop_back_val(). llvm-svn: 92734 | ||||
* | Remove isPod() from DenseMapInfo, splitting it out to its own | Chris Lattner | 2009-12-15 | 1 | -1/+0 |
| | | | | | | | | isPodLike type trait. This is a generally useful type trait for more than just DenseMap, and we really care about whether something acts like a pod, not whether it really is a pod. llvm-svn: 91421 | ||||
* | Don't leave pointers uninitialized in the default constructor. GCC complains | Chandler Carruth | 2009-12-13 | 1 | -1/+1 |
| | | | | | | about the potential use of these uninitialized members under certain conditions. llvm-svn: 91239 | ||||
* | Pull LLVMContext out of PromoteMemToReg. | Nick Lewycky | 2009-11-23 | 1 | -8/+4 |
| | | | | llvm-svn: 89645 | ||||
* | fix a bug exposed by moving SRoA earlier which caused a crash building kc++ | Chris Lattner | 2009-11-02 | 1 | -1/+6 |
| | | | | llvm-svn: 85786 | ||||
* | Remove includes of Support/Compiler.h that are no longer needed after the | Nick Lewycky | 2009-10-25 | 1 | -1/+0 |
| | | | | | | VISIBILITY_HIDDEN removal. llvm-svn: 85043 | ||||
* | Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces. | Nick Lewycky | 2009-10-25 | 1 | -3/+3 |
| | | | | | | | Chris claims we should never have visibility_hidden inside any .cpp file but that's still not true even after this commit. llvm-svn: 85042 | ||||
* | tidy up | Chris Lattner | 2009-09-21 | 1 | -7/+8 |
| | | | | llvm-svn: 82488 | ||||
* | Change PHINode::hasConstantValue to have a DominatorTree argument | Dan Gohman | 2009-09-03 | 1 | -11/+8 |
| | | | | | | | | instead of a bool argument, and to do the dominator check itself. This makes it eaiser to use when DominatorTree information is available. llvm-svn: 80920 | ||||
* | Fix a bunch of namespace pollution. | Dan Gohman | 2009-08-07 | 1 | -0/+3 |
| | | | | llvm-svn: 78363 | ||||
* | Move more code back to 2.5 APIs. | Owen Anderson | 2009-07-30 | 1 | -4/+4 |
| | | | | llvm-svn: 77635 | ||||
* | Twines: Don't allow implicit conversion from integers, this is too tricky. | Daniel Dunbar | 2009-07-30 | 1 | -1/+1 |
| | | | | llvm-svn: 77605 | ||||
* | Switch obvious clients to Twine instead of utostr (when they were already using | Daniel Dunbar | 2009-07-30 | 1 | -3/+2 |
| | | | | | | | | | a Twine, e.g., for names). - I am a little ambivalent about this; we don't want the string conversion of utostr, but using overload '+' mixed with string and integer arguments is sketchy. On the other hand, this particular usage is something of an idiom. llvm-svn: 77579 | ||||
* | Get rid of the Pass+Context magic. | Owen Anderson | 2009-07-22 | 1 | -7/+7 |
| | | | | llvm-svn: 76702 | ||||
* | "LLVMContext* " --> "LLVMContext *" | Owen Anderson | 2009-07-06 | 1 | -3/+3 |
| | | | | llvm-svn: 74878 | ||||
* | More LLVMContext-ification. | Owen Anderson | 2009-07-05 | 1 | -8/+12 |
| | | | | llvm-svn: 74807 | ||||
* | Simplify code by using SmallVector's pop_back_val() instead of | Dan Gohman | 2009-05-06 | 1 | -2/+1 |
| | | | | | | separate back() and pop_back() calls. llvm-svn: 71089 | ||||
* | Fix for PR3944: make mem2reg O(N) instead of O(N^2) in the number of | Eli Friedman | 2009-04-16 | 1 | -19/+11 |
| | | | | | | incoming edges for a block with many predecessors. llvm-svn: 69312 | ||||
* | Tweak the check for promotable alloca's to handle | Dale Johannesen | 2009-03-06 | 1 | -1/+7 |
| | | | | | | debug intrinsics correctly. llvm-svn: 66225 | ||||
* | Let AnalyzeAlloca() remove debug intrinsics. | Devang Patel | 2008-11-17 | 1 | -20/+11 |
| | | | | llvm-svn: 59454 | ||||
* | Rework r58829, allowing removal of dbg info intrinsics during alloca | Daniel Dunbar | 2008-11-08 | 1 | -20/+24 |
| | | | | | | | | promotion. - Eliminate uses after free and simplify tests. Devang: Please check that this is still doing what you intended. llvm-svn: 58887 | ||||
* | BCUI + 1 doesn't work. Use next instead. | Bill Wendling | 2008-11-07 | 1 | -1/+2 |
| | | | | llvm-svn: 58830 | ||||
* | Handle (delete) dbg intrinsics while promoting alloca. | Devang Patel | 2008-11-07 | 1 | -3/+22 |
| | | | | llvm-svn: 58826 | ||||
* | Rewrite all the 'PromoteLocallyUsedAlloca[s]' logic. With the power of | Chris Lattner | 2008-10-27 | 1 | -175/+97 |
| | | | | | | | | | | | | | | | | LargeBlockInfo, we can now dramatically simplify their implementation and speed them up at the same time. Now the code has time proportional to the number of uses of the alloca, not the size of the block. This also eliminates code that tried to batch up different allocas which are used in the same blocks, and eliminates the 'retry list' logic which was baroque and no unneccesary. In addition to being a speedup for crazy cases, this is also a nice cleanup: PromoteMemoryToRegister.cpp | 270 +++++++++++++++----------------------------- 1 file changed, 96 insertions(+), 174 deletions(-) llvm-svn: 58229 |