Chris Lattner 
							
						 
					 
					
						
						
							
						
						f5ebfb0d28 
					 
					
						
						
							
							Don't unroll loops whose header block's address is taken.  
						
						... 
						
						
						
						This is part of a futile attempt to not "break" bizzaro
code like this:
 l1:
  printf("l1: %p\n", &&l1);
  ++x;
  if( x < 3 ) goto l1;
Previously we'd fold &&l1 to 1, which is fine per our semantics
but not helpful to the user.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125827  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-02-18 04:25:21 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						b298db7253 
					 
					
						
						
							
							random cleanups  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123221  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-11 08:00:40 +00:00 
						 
				 
			
				
					
						
							
							
								Jay Foad 
							
						 
					 
					
						
						
							
						
						8f9ffbd056 
					 
					
						
						
							
							Remove all uses of the "ugly" method BranchInst::setUnconditionalDest().  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123025  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-07 20:25:56 +00:00 
						 
				 
			
				
					
						
							
							
								Duncan Sands 
							
						 
					 
					
						
						
							
						
						b6133d1483 
					 
					
						
						
							
							Replace calls to ConstantFoldInstruction with calls to SimplifyInstruction  
						
						... 
						
						
						
						in two places that are really interested in simplified instructions, not
constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120044  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-11-23 20:26:33 +00:00 
						 
				 
			
				
					
						
							
							
								Rafael Espindola 
							
						 
					 
					
						
						
							
						
						1ed219a9d2 
					 
					
						
						
							
							Be more consistent in using ValueToValueMapTy.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116387  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-10-13 01:36:30 +00:00 
						 
				 
			
				
					
						
							
							
								Dan Gohman 
							
						 
					 
					
						
						
							
						
						572365ec88 
					 
					
						
						
							
							Preserve ScalarEvolution in the loop unroller.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109412  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-26 18:02:06 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						e9916a302f 
					 
					
						
						
							
							Use ValueMap instead of DenseMap.  
						
						... 
						
						
						
						The ValueMapper used by various cloning utility maps MDNodes also.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106706  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-24 00:33:28 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						29d3dd8a64 
					 
					
						
						
							
							Cosmetic change.  
						
						... 
						
						
						
						Do not use "ValueMap" as a name for a local variable or an argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106698  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-23 23:55:51 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						3943084136 
					 
					
						
						
							
							Rename ValueMapTy as ValueToValueMapTy to clearly indicate that this has no replationship with ADT/ValueMap.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101950  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-04-20 22:24:18 +00:00 
						 
				 
			
				
					
						
							
							
								Dan Gohman 
							
						 
					 
					
						
						
							
						
						bbf81d8811 
					 
					
						
						
							
							Add a DominatorTree argument to isLCSSA so that it doesn't have to  
						
						... 
						
						
						
						compute a set of reachable blocks for itself each time it is called, which
is fairly frequently.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98179  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-03-10 19:38:49 +00:00 
						 
				 
			
				
					
						
							
							
								Benjamin Kramer 
							
						 
					 
					
						
						
							
						
						5deb57c685 
					 
					
						
						
							
							Don't bother with sprintf, just pass the Twine through.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94684  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-01-27 19:58:47 +00:00 
						 
				 
			
				
					
						
							
							
								David Greene 
							
						 
					 
					
						
						
							
						
						a9ad9c24ae 
					 
					
						
						
							
							Change errs() to dbgs().  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92600  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-01-05 01:26:41 +00:00 
						 
				 
			
				
					
						
							
							
								Dan Gohman 
							
						 
					 
					
						
						
							
						
						92329c7fbe 
					 
					
						
						
							
							Add Loop contains utility methods for testing whether a loop  
						
						... 
						
						
						
						contains another loop, or an instruction. The loop form is
substantially more efficient on large loops than the typical
code it replaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91654  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2009-12-18 01:24:09 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						7b550ccfc5 
					 
					
						
						
							
							remove a bunch of extraneous LLVMContext arguments  
						
						... 
						
						
						
						from various APIs, addressing PR5325.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86231  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2009-11-06 04:27:31 +00:00 
						 
				 
			
				
					
						
							
							
								Dan Gohman 
							
						 
					 
					
						
						
							
						
						692ad8dd06 
					 
					
						
						
							
							Teach LoopUnroll how to bail if LoopSimplify can't give it what it needs.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86164  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2009-11-05 19:44:06 +00:00 
						 
				 
			
				
					
						
							
							
								Dan Gohman 
							
						 
					 
					
						
						
							
						
						438b583dbd 
					 
					
						
						
							
							Revert r85667. LoopUnroll currently can't call utility functions which  
						
						... 
						
						
						
						auto-update the DominatorTree because it doesn't keep the DominatorTree
current while it works.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85670  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2009-10-31 17:33:01 +00:00 
						 
				 
			
				
					
						
							
							
								Dan Gohman 
							
						 
					 
					
						
						
							
						
						f230d8ad15 
					 
					
						
						
							
							Merge the enhancements from LoopUnroll's FoldBlockIntoPredecessor into  
						
						... 
						
						
						
						MergeBlockIntoPredecessor. This makes SimplifyCFG slightly more aggressive,
and makes it unnecessary for LoopUnroll to have its own copy of this code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85667  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2009-10-31 16:08:00 +00:00 
						 
				 
			
				
					
						
							
							
								Dan Gohman 
							
						 
					 
					
						
						
							
						
						b56c966019 
					 
					
						
						
							
							Simplify this code.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85662  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2009-10-31 14:46:50 +00:00 
						 
				 
			
				
					
						
							
							
								Dan Gohman 
							
						 
					 
					
						
						
							
						
						928a75f057 
					 
					
						
						
							
							Rename UnrollLoop.cpp to LoopUnroll.cpp, and LoopUnroll.cpp to  
						
						... 
						
						
						
						LoopUnrollPass.cpp, for consistency with other passes which are
similarly split.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85659  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2009-10-31 14:37:31 +00:00