Chad Rosier 
							
						 
					 
					
						
						
							
						
						618c1dbd29 
					 
					
						
						
							
							Propagate TargetLibraryInfo throughout ConstantFolding.cpp and  
						
						 
						
						... 
						
						
						
						InstructionSimplify.cpp.  Other fixups as needed.
Part of rdar://10500969
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145559  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-12-01 03:08:23 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Eli Friedman 
							
						 
					 
					
						
						
							
						
						18ead6b587 
					 
					
						
						
							
							Fix a couple hash functions so that they do not depend on undefined shifts.  Based on patch by Ahmed Charles.  
						
						 
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141820  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-10-12 22:00:26 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Eli Friedman 
							
						 
					 
					
						
						
							
						
						2bc3d52b9a 
					 
					
						
						
							
							Change a bunch of isVolatile() checks to check for atomic load/store as well.  
						
						 
						
						... 
						
						
						
						No tests; these changes aren't really interesting in the sense that the logic is the same for volatile and atomic.
I believe this completes all of the changes necessary for the optimizer to handle loads and stores correctly.  I'm going to try and come up with some additional testing, though.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139533  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-09-12 20:23:13 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						e508dd4c75 
					 
					
						
						
							
							Duncan deftly points out that readnone functions aren't  
						
						 
						
						... 
						
						
						
						invalidated by stores, so they can be handled as 'simple'
operations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122785  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-03 23:38:13 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						10b883b13f 
					 
					
						
						
							
							stength reduce my previous patch a bit.  The only instructions  
						
						 
						
						... 
						
						
						
						that are allowed to have metadata operands are intrinsic calls,
and the only ones that take metadata currently return void.
Just reject all void instructions, which should not be value
numbered anyway.  To future proof things, add an assert to the
getHashValue impl for calls to check that metadata operands 
aren't present.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122759  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-03 18:43:03 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						a12ba39a1d 
					 
					
						
						
							
							fix PR8895: metadata operands don't have a strong use of their  
						
						 
						
						... 
						
						
						
						nested values, so they can change and drop to null, which can
change the hash and cause havok.
It turns out that it isn't a good idea to value number stuff
with metadata operands anyway, so... don't.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122758  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-03 18:28:15 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						75637154c3 
					 
					
						
						
							
							earlycse can do trivial with-a-block dead store  
						
						 
						
						... 
						
						
						
						elimination as well.  This deletes 60 stores in 176.gcc
that largely come from bitfield code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122736  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-03 04:17:24 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						71230acbbe 
					 
					
						
						
							
							switch the load table to use a recycling bump pointer allocator,  
						
						 
						
						... 
						
						
						
						speeding earlycse up by 6%.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122733  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-03 03:53:50 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						ef87fc2e0a 
					 
					
						
						
							
							now that loads are in their own table, we can implement  
						
						 
						
						... 
						
						
						
						store->load forwarding.  This allows EarlyCSE to zap 600 more
loads from 176.gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122732  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-03 03:46:34 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						85db61066a 
					 
					
						
						
							
							split loads and calls into separate tables.  Loads are now just indexed  
						
						 
						
						... 
						
						
						
						by their pointer instead of using MemoryValue to wrap it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122731  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-03 03:41:27 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						a60a8b0eb7 
					 
					
						
						
							
							various cleanups, no functionality change.  
						
						 
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122729  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-03 03:28:23 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						8e7f0d70c7 
					 
					
						
						
							
							Teach EarlyCSE to do trivial CSE of loads and read-only calls.  
						
						 
						
						... 
						
						
						
						On 176.gcc, this catches 13090 loads and calls, and increases the
number of simple instructions CSE'd from 29658 to 36208.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122727  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-03 03:18:43 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						f19745947d 
					 
					
						
						
							
							rename InstValue to SimpleValue, add some comments.  
						
						 
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122725  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-03 02:20:48 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						82dcd5edd2 
					 
					
						
						
							
							Allocate nodes for the scoped hash table from a recyling bump pointer  
						
						 
						
						... 
						
						
						
						allocator.  This speeds up early cse by about 20%
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122723  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-03 01:42:46 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						d957c71791 
					 
					
						
						
							
							reduce redundancy in the hashing code and other misc cleanups.  
						
						 
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122720  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-03 01:10:08 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						67678c8307 
					 
					
						
						
							
							fix some pastos  
						
						 
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122718  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-02 23:29:58 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						91139ccd99 
					 
					
						
						
							
							add DEBUG and -stats output to earlycse.  
						
						 
						
						... 
						
						
						
						Teach it to CSE the rest of the non-side-effecting instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122716  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-02 23:19:45 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						cc9eab26b3 
					 
					
						
						
							
							Enhance earlycse to do CSE of casts, instsimplify and die.  
						
						 
						
						... 
						
						
						
						Add a testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122715  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-02 23:04:14 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						12be936cc9 
					 
					
						
						
							
							sketch out a new early cse pass.  No functionality yet.  
						
						 
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122713  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2011-01-02 21:47:05 +00:00