Devang Patel 
							
						 
					 
					
						
						
							
						
						bd68d42843 
					 
					
						
						
							
							Map MDNode correctly.  
						
						... 
						
						
						
						A non function local MDNode can have an operand which is cloned by MapValue(). 
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109117  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-22 16:35:00 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						96f1d8ebdd 
					 
					
						
						
							
							mass elimination of reliance on automatic iterator dereferencing  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109103  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-22 13:36:47 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						20361b9d4d 
					 
					
						
						
							
							pass dereferenced iterator to dyn_cast  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109098  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-22 11:43:44 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						a399781289 
					 
					
						
						
							
							undo 80 column trespassing I caused  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109092  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-22 10:37:47 +00:00 
						 
				 
			
				
					
						
							
							
								Dan Gohman 
							
						 
					 
					
						
						
							
						
						17aa92c92a 
					 
					
						
						
							
							Make NamedMDNode not be a subclass of Value, and simplify the interface  
						
						... 
						
						
						
						for creating and populating NamedMDNodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109061  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-21 23:38:33 +00:00 
						 
				 
			
				
					
						
							
							
								Owen Anderson 
							
						 
					 
					
						
						
							
						
						d13db2c59c 
					 
					
						
						
							
							Fix batch of converting RegisterPass<> to INTIALIZE_PASS().  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109045  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-21 22:09:45 +00:00 
						 
				 
			
				
					
						
							
							
								Dan Gohman 
							
						 
					 
					
						
						
							
						
						333a94765a 
					 
					
						
						
							
							Use DebugLocs instead of MDNodes.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108967  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-20 23:49:05 +00:00 
						 
				 
			
				
					
						
							
							
								Dan Gohman 
							
						 
					 
					
						
						
							
						
						7bc230ec6a 
					 
					
						
						
							
							Don't look up the "dbg" metadata kind by name.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108961  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-20 23:09:34 +00:00 
						 
				 
			
				
					
						
							
							
								Dan Gohman 
							
						 
					 
					
						
						
							
						
						1e381fcd55 
					 
					
						
						
							
							Reorder the contents of various getAnalysisUsage functions, eliminating  
						
						... 
						
						
						
						a redundant loopsimplify run from the default -O2 sequence.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108539  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-16 17:58:45 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						a6aac4c5bc 
					 
					
						
						
							
							eliminate CallInst::ArgOffset  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108522  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-16 09:38:02 +00:00 
						 
				 
			
				
					
						
							
							
								Owen Anderson 
							
						 
					 
					
						
						
							
						
						2722dfa75d 
					 
					
						
						
							
							Remove unneeded check, and correct style.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108427  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-15 16:38:22 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						35a939b97d 
					 
					
						
						
							
							make various clients of ReplaceAndSimplifyAllUses tolerate  
						
						... 
						
						
						
						it *changing* the things it replaces, not just causing them
to drop to null.  There is no functionality change yet, but 
this is required for a subsequent patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108414  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-15 06:06:04 +00:00 
						 
				 
			
				
					
						
							
							
								Owen Anderson 
							
						 
					 
					
						
						
							
						
						e84178a0bd 
					 
					
						
						
							
							Extend SimplifyCFG's common-destination folding heuristic to allow a single  
						
						... 
						
						
						
						"bonus" instruction to be speculatively executed.  Add a heuristic to
ensure we're not tripping up out-of-order execution by checking that this bonus
instruction only uses values that were already guaranteed to be available.
This allows us to eliminate the short circuit in (x&1)&&(x&2).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108351  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-14 19:52:16 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						625398343e 
					 
					
						
						
							
							cache dereferenced iterators  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108133  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-12 10:59:23 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						f1b2874c68 
					 
					
						
						
							
							cache dereferenced iterators  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108132  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-12 10:49:54 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						9085fcab82 
					 
					
						
						
							
							cache result of operator*  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107984  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-09 16:31:08 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						bf2eefdb0d 
					 
					
						
						
							
							cache result of operator*  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107983  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-09 16:26:41 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						e80ba4f884 
					 
					
						
						
							
							cache result of operator*  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107981  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-09 16:17:52 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						7556cf541b 
					 
					
						
						
							
							cache result of operator*  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107975  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-09 15:25:42 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						5896935423 
					 
					
						
						
							
							cache result of operator*  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107974  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-09 15:25:09 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						a29742df5f 
					 
					
						
						
							
							cache result of operator*  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107968  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-09 14:29:14 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						5417a03b55 
					 
					
						
						
							
							cache result of operator*  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107966  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-09 14:18:23 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						9672414017 
					 
					
						
						
							
							cache operator*'s result (in multiple functions)  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107965  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-09 14:02:13 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						1192d4d0a5 
					 
					
						
						
							
							MDString is already checked earlier.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107516  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-07-02 21:13:23 +00:00 
						 
				 
			
				
					
						
							
							
								Jim Grosbach 
							
						 
					 
					
						
						
							
						
						7fa1bbad29 
					 
					
						
						
							
							lowerinvoke needs to handle aggregate function args like sjlj eh does.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107335  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-30 22:22:59 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						351cbac4d3 
					 
					
						
						
							
							use getArgOperand instead of getOperand  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107269  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-30 09:14:26 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						245e9c4834 
					 
					
						
						
							
							use CallInst::ArgOffset  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107003  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-28 12:30:07 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						f148cb6044 
					 
					
						
						
							
							use ArgOperand API and CallInst::ArgOffset  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107002  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-28 12:29:20 +00:00 
						 
				 
			
				
					
						
							
							
								Dale Johannesen 
							
						 
					 
					
						
						
							
						
						1784d160e4 
					 
					
						
						
							
							The hasMemory argument is irrelevant to how the argument  
						
						... 
						
						
						
						for an "i" constraint should get lowered; PR 6309.  While
this argument was passed around a lot, this is the only
place it was used, so it goes away from a lot of other
places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106893  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-25 21:55:36 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						f1ba6513bf 
					 
					
						
						
							
							use ArgOperand API (one more hunk I could split)  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106825  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-25 07:58:41 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						9c68a7bb45 
					 
					
						
						
							
							use ArgOperand API (some hunks I could split)  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106824  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-25 07:57:14 +00:00 
						 
				 
			
				
					
						
							
							
								Gabor Greif 
							
						 
					 
					
						
						
							
						
						aeff385e3e 
					 
					
						
						
							
							use callsite to obtain all arguments  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106728  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-24 09:56:43 +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 
							
						 
					 
					
						
						
							
						
						774cca70b1 
					 
					
						
						
							
							Use available typedef for " DenseMap<const Value*, Value*>".  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106699  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-24 00:00:42 +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 
							
						 
					 
					
						
						
							
						
						170f06ebe2 
					 
					
						
						
							
							Revert 106592 for now. It causes clang-selfhost build failure.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106598  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-22 23:29:55 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						186b3d2606 
					 
					
						
						
							
							If a metadata operand is seeded in value map and the metadata should also be seeded in value map. This is not limited to function local metadata.  
						
						... 
						
						
						
						Failure to seed metdata in such cases causes troubles when in a cloned module, metadata from a new module refers to values in old module. Usually this results in mysterious bugpoint crashes. For example,
 Checking to see if we can delete global inits: Unknown constant!
 UNREACHABLE executed at /d/g/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:904!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106592  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-22 22:53:21 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						3bf329f495 
					 
					
						
						
							
							While cloning a module, clone metadata attached with instructions.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106591  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-22 22:50:42 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						d8800e7972 
					 
					
						
						
							
							Clone named metadata while cloning a module.  
						
						... 
						
						
						
						Reapply Bob's patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106560  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-22 18:52:38 +00:00 
						 
				 
			
				
					
						
							
							
								Dan Gohman 
							
						 
					 
					
						
						
							
						
						fe60104ac9 
					 
					
						
						
							
							Use pre-increment instead of post-increment when the result is not used.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106542  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-22 15:08:57 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						e4acff8720 
					 
					
						
						
							
							Revert 106528. It is causing self host failures.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106529  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-22 06:14:09 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						52e0612f7d 
					 
					
						
						
							
							Do not rely on DenseMap slot which can be easily invalidated when DenseMap grows.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106528  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-22 05:16:56 +00:00 
						 
				 
			
				
					
						
							
							
								Bob Wilson 
							
						 
					 
					
						
						
							
						
						ec68864877 
					 
					
						
						
							
							Revert my change to clone named metadata.  Buildbots are complaining.  
						
						... 
						
						
						
						--- Reverse-merging r106508 into '.':
U    lib/Transforms/Utils/CloneModule.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106521  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-22 02:08:51 +00:00 
						 
				 
			
				
					
						
							
							
								Bob Wilson 
							
						 
					 
					
						
						
							
						
						e42f493f4c 
					 
					
						
						
							
							Include named metadata when cloning a module.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106508  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-22 00:11:03 +00:00 
						 
				 
			
				
					
						
							
							
								Dan Gohman 
							
						 
					 
					
						
						
							
						
						403a8cdda5 
					 
					
						
						
							
							Use A.append(...) instead of A.insert(A.end(), ...) when A is a  
						
						... 
						
						
						
						SmallVector, and other SmallVector simplifications.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106452  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-21 19:47:52 +00:00 
						 
				 
			
				
					
						
							
							
								Jim Grosbach 
							
						 
					 
					
						
						
							
						
						d0e8469ba6 
					 
					
						
						
							
							remove trailing whitespace  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106164  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-16 22:41:09 +00:00 
						 
				 
			
				
					
						
							
							
								Benjamin Kramer 
							
						 
					 
					
						
						
							
						
						386e918438 
					 
					
						
						
							
							simplify-libcalls: fold strstr(a, b) == a -> strncmp(a, b, strlen(b)) == 0  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106047  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-15 21:34:25 +00:00 
						 
				 
			
				
					
						
							
							
								Devang Patel 
							
						 
					 
					
						
						
							
						
						93031ac032 
					 
					
						
						
							
							Copy location info for current function argument from dbg.declare if respective store instruction does not have any location info.  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105490  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-04 22:27:30 +00:00 
						 
				 
			
				
					
						
							
							
								Jim Grosbach 
							
						 
					 
					
						
						
							
						
						23d3d4595c 
					 
					
						
						
							
							Remove unused code  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105293  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-01 21:56:30 +00:00 
						 
				 
			
				
					
						
							
							
								Jim Grosbach 
							
						 
					 
					
						
						
							
						
						69081e9291 
					 
					
						
						
							
							fix think-o  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105291  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2010-06-01 21:35:50 +00:00