Chris Lattner 
							
						 
					 
					
						
						
							
						
						f629309f74 
					 
					
						
						
							
							*** empty log message ***  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3016  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-07-23 18:06:35 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						7e70829632 
					 
					
						
						
							
							MEGAPATCH checkin.  
						
						... 
						
						
						
						For details, See: docs/2002-06-25-MegaPatchInfo.txt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2779  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-06-25 16:13:24 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						2172db04e7 
					 
					
						
						
							
							Trivial cleanups  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2617  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-05-13 22:04:46 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						3dec1f2722 
					 
					
						
						
							
							Add support for printing out statistics information when -stats is added to  
						
						... 
						
						
						
						the command line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2601  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-05-10 15:38:35 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						022103b3f3 
					 
					
						
						
							
							Merge all individual .h files into a single Scalar.h file  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2537  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-05-07 20:03:00 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						2ed01d8f0b 
					 
					
						
						
							
							Factor code out to the TransformUtils library  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2516  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-05-07 18:10:55 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						89df1b58a9 
					 
					
						
						
							
							* Eliminate dead code that should have been removed in last revision  
						
						... 
						
						
						
						* Convert main constant propogation pass to be worklist driven instead of
  iterative.
* -constprop pass no longer "constant propogates" terminator instructions
   - CFG is now preserved!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2502  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-05-06 18:21:31 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						f51825e3fb 
					 
					
						
						
							
							* Use simplified interface to constant propogation stuff.  
						
						... 
						
						
						
						* Remove dead PHI case (which could not work due to getNumOperands rather than
  getNumIncomingValues.  This really belongs in InstCombine, anyway so we'll
  move it there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2497  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-05-06 17:54:10 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						4c1061f58c 
					 
					
						
						
							
							Implement constant propogation of shift instructions  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2471  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-05-06 03:01:37 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						96c466b06a 
					 
					
						
						
							
							Add new optional getPassName() virtual function that a Pass can override  
						
						... 
						
						
						
						to make debugging output a lot nicer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2395  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-04-29 14:57:45 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						97e52e4336 
					 
					
						
						
							
							Tighten up the AnalysisUsage of lots of passes, primarily to correctly indicate whether or not they invalidate the CFGA  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2386  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-04-28 21:27:06 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						31bcdb822f 
					 
					
						
						
							
							Split ConstantVals.h into Constant.h and Constants.h  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2378  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-04-28 19:55:58 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						f57b845547 
					 
					
						
						
							
							* Rename MethodPass class to FunctionPass  
						
						... 
						
						
						
						- Rename runOnMethod to runOnFunction
* Transform getAnalysisUsageInfo into getAnalysisUsage
  - Method is now const
  - It now takes one AnalysisUsage object to fill in instead of 3 vectors
    to fill in
  - Pass's now specify which other passes they _preserve_ not which ones
    they modify (be conservative!)
  - A pass can specify that it preserves all analyses (because it never
    modifies the underlying program)
* s/Method/Function/g in other random places as well
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2333  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-04-27 06:56:12 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						237e6d10f2 
					 
					
						
						
							
							s/Method/Function  
						
						... 
						
						
						
						Remove extraneous #includes of llvm/Assembly/Writer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2178  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-04-08 22:03:00 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						968ddc921e 
					 
					
						
						
							
							ConstantHandling moved into VMCore library  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2165  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-04-08 20:18:09 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						2fbfdcffd3 
					 
					
						
						
							
							Change references to the Method class to be references to the Function  
						
						... 
						
						
						
						class.  The Method class is obsolete (renamed) and all references to it
are being converted over to Function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2144  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-04-07 20:49:59 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						0fce76a009 
					 
					
						
						
							
							Fix bug: test/Regression/Other/2002-03-11-ConstPropCrash.ll  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1858  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-03-11 22:11:07 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						bd0ef77cde 
					 
					
						
						
							
							Change over to use new style pass mechanism, now passes only expose small  
						
						... 
						
						
						
						creation functions in their public header file, unless they can help it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1816  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-02-26 21:46:54 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						59b6b8e0b3 
					 
					
						
						
							
							Move stuff out of the Optimizations directories into the appropriate Transforms  
						
						... 
						
						
						
						directories.  Eliminate the opt namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1520  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-01-21 23:17:48 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						697954c15d 
					 
					
						
						
							
							Changes to build successfully with GCC 3.02  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2002-01-20 22:54:45 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						9102aee528 
					 
					
						
						
							
							Assertion could never fail because another one would in it's place.  :)  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1449  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-12-13 00:45:40 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						e9bb2df410 
					 
					
						
						
							
							Rename ConstPoolVal -> Constant  
						
						... 
						
						
						
						Rename ConstPool*   -> Constant*
Rename ConstPoolVals.h -> ConstantVals.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1407  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-12-03 22:26:30 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						7061dc50b2 
					 
					
						
						
							
							Split the PHINode class out from the iOther.h file into the iPHINode.h file  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1405  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-12-03 18:02:31 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						faffb053fe 
					 
					
						
						
							
							Expose constant propogation of an instruction in a clean way  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1376  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-11-26 18:57:12 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						37aabf28b3 
					 
					
						
						
							
							Implemented constant propogation of cast instructions  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1064  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-10-31 05:07:57 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						5680ee6b28 
					 
					
						
						
							
							Convert optimizations to the pass infrastructure  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@873  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-10-18 01:32:34 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						b00c582b6d 
					 
					
						
						
							
							Commit more code over to new cast style  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@697  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-10-02 03:41:24 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						1d87bcf490 
					 
					
						
						
							
							Convert more code to use new style casts  
						
						... 
						
						
						
						Eliminate old style casts from value.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@696  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-10-01 20:11:19 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						9636a91649 
					 
					
						
						
							
							Add support for new style casts  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@694  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-10-01 16:18:37 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						9b644cc627 
					 
					
						
						
							
							* Supoprt global constants  
						
						... 
						
						
						
						* Remove support for local constant pools
* Eliminate constant pool merging method, which is no longer neccesary
* Disable invalid optimization (todo: fix it)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@452  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-09-07 16:41:30 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						a41f50dea8 
					 
					
						
						
							
							Broad superficial changes:  
						
						... 
						
						
						
						* Renamed getOpcode to getOpcodeName
* Changed getOpcodeName to return a const char * instead of string
* Added a getOpcode method to replace getInstType
* Changed code to use getOpcode instead of getInstType
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-07-07 19:24:15 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						c8b25d40cb 
					 
					
						
						
							
							Changed the fundemental architecture of Operands for Instructions.  Now  
						
						... 
						
						
						
						Operands are maintained as a vector<Use> in the User class, and operator
iterators are provided as before.  Getting an operand no longer requires
a virtual function call.
WARNING: getOperand(x) where x >= getNumOperands() will now assert instead
of returning null!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-07-07 08:36:50 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						7e02b7e600 
					 
					
						
						
							
							Optimizations got their own header files  
						
						... 
						
						
						
						Optimizations now live in the 'opt' namespace
include/llvm/Opt was renamed include/llvm/Optimizations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-06-30 04:36:40 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						2b05880476 
					 
					
						
						
							
							Export ConstantFoldTerminator, allow it to fold conditional branches to  
						
						... 
						
						
						
						the same label.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-06-29 23:56:58 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						bca26a4c6b 
					 
					
						
						
							
							We need to make sure to remove PHI nodes in the successor that cannot be  
						
						... 
						
						
						
						executed when removing branch dest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-06-29 05:23:10 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						531450d8a6 
					 
					
						
						
							
							* Expose DoConstantPoolMerging  
						
						... 
						
						
						
						* Cleanups (post->pre increment, new cleaner API, etc)
* Moved stuff into ConstantHandling.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-06-27 23:35:26 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Lattner 
							
						 
					 
					
						
						
							
						
						009505452b 
					 
					
						
						
							
							Initial revision  
						
						... 
						
						
						
						git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2  91177308-0d34-0410-b5e6-96231b3b80d8 
						
						
					 
					
						2001-06-06 20:29:01 +00:00