f3ebc3f3d2 
								
							 
						 
						
							
							
								
								Remove attribution from file headers, per discussion on llvmdev.  
							
							... 
							
							
							
							llvm-svn: 45418 
							
						 
						
							2007-12-29 20:36:04 +00:00  
				
					
						
							
							
								 
						
							
								c4a80fb574 
								
							 
						 
						
							
							
								
								Get rid of annoying spaces.  
							
							... 
							
							
							
							llvm-svn: 45100 
							
						 
						
							2007-12-17 17:40:29 +00:00  
				
					
						
							
							
								 
						
							
								b0dd27ee91 
								
							 
						 
						
							
							
								
								Make LoopInfoBase more generic, in preparation for having MachineLoopInfo.  This involves a small interface change.  
							
							... 
							
							
							
							llvm-svn: 44348 
							
						 
						
							2007-11-27 03:43:35 +00:00  
				
					
						
							
							
								 
						
							
								2af23f976b 
								
							 
						 
						
							
							
								
								Do not walk invalid iterator.  
							
							... 
							
							
							
							llvm-svn: 42812 
							
						 
						
							2007-10-09 21:31:36 +00:00  
				
					
						
							
							
								 
						
							
								a69f987b66 
								
							 
						 
						
							
							
								
								Fix bug in updating dominance frontier after loop  
							
							... 
							
							
							
							unswitch when frontier includes basic blocks that 
are not inside loop.
llvm-svn: 42654 
							
						 
						
							2007-10-05 22:29:34 +00:00  
				
					
						
							
							
								 
						
							
								3574759d85 
								
							 
						 
						
							
							
								
								Fix 80 col violation.  
							
							... 
							
							
							
							llvm-svn: 42591 
							
						 
						
							2007-10-03 21:17:43 +00:00  
				
					
						
							
							
								 
						
							
								e192e32577 
								
							 
						 
						
							
							
								
								Refactor code in a separate method.  
							
							... 
							
							
							
							llvm-svn: 42590 
							
						 
						
							2007-10-03 21:16:08 +00:00  
				
					
						
							
							
								 
						
							
								83cc3f8f51 
								
							 
						 
						
							
							
								
								Update aux. info associated with an instruction before erasing instruction.  
							
							... 
							
							
							
							llvm-svn: 42180 
							
						 
						
							2007-09-20 23:45:50 +00:00  
				
					
						
							
							
								 
						
							
								b5933bbbd5 
								
							 
						 
						
							
							
								
								Use SmallVector instead of std::vector.  
							
							... 
							
							
							
							llvm-svn: 41207 
							
						 
						
							2007-08-21 00:31:24 +00:00  
				
					
						
							
							
								 
						
							
								816a190cdf 
								
							 
						 
						
							
							
								
								Fix GLIBCXX_DEBUG error triggered by incrementing erased iterator.  
							
							... 
							
							
							
							llvm-svn: 40897 
							
						 
						
							2007-08-07 16:44:38 +00:00  
				
					
						
							
							
								 
						
							
								2740694450 
								
							 
						 
						
							
							
								
								wrap some long lines.  Major offenders that are left include  
							
							... 
							
							
							
							gvn, gvnpre, dse, and predsimplify.  To see these, use:
  make check-line-length
llvm-svn: 40738 
							
						 
						
							2007-08-02 16:53:43 +00:00  
				
					
						
							
							
								 
						
							
								a882328e61 
								
							 
						 
						
							
							
								
								Update dominator info for the middle blocks created while spliting  
							
							... 
							
							
							
							exit edge to preserve LCSSA.
Fix dominance frontier update during loop unswitch. This fixes PR 1589, again
llvm-svn: 40737 
							
						 
						
							2007-08-02 15:25:57 +00:00  
				
					
						
							
							
								 
						
							
								34890b2f27 
								
							 
						 
						
							
							
								
								Undo previous check-in.  
							
							... 
							
							
							
							llvm-svn: 40698 
							
						 
						
							2007-08-01 23:24:50 +00:00  
				
					
						
							
							
								 
						
							
								561b0c29a3 
								
							 
						 
						
							
							
								
								Update dominator info for the middle blocks created while spliting  
							
							... 
							
							
							
							exit edge to preserve LCSSA.
Fix dominance frontier update during loop unswitch. This fixes PR 1589.
llvm-svn: 40695 
							
						 
						
							2007-08-01 22:23:50 +00:00  
				
					
						
							
							
								 
						
							
								34d442f274 
								
							 
						 
						
							
							
								
								More explicit keywords.  
							
							... 
							
							
							
							llvm-svn: 40673 
							
						 
						
							2007-08-01 15:32:29 +00:00  
				
					
						
							
							
								 
						
							
								d491198000 
								
							 
						 
						
							
							
								
								Loop unswitch preserves dom info.  
							
							... 
							
							
							
							Use simple analysis interface to preserve analysis info maintained by other loop passes.
llvm-svn: 40627 
							
						 
						
							2007-07-31 08:03:26 +00:00  
				
					
						
							
							
								 
						
							
								7d165e1d84 
								
							 
						 
						
							
							
								
								If loop can be unswitched again, then do it yourself.  
							
							... 
							
							
							
							llvm-svn: 40609 
							
						 
						
							2007-07-30 23:07:10 +00:00  
				
					
						
							
							
								 
						
							
								14fae50666 
								
							 
						 
						
							
							
								
								Remove dead code.  
							
							... 
							
							
							
							llvm-svn: 40606 
							
						 
						
							2007-07-30 21:10:44 +00:00  
				
					
						
							
							
								 
						
							
								1a39a2d13d 
								
							 
						 
						
							
							
								
								VStudio compiler errors and placing Function*->ExFunc map under ManagedStatic control.  
							
							... 
							
							
							
							This commit fixes two things.  One is a pair of VStudio compiler errors stemming from variables
which defined within the for loop statement and also within the body of the for loop.  I fixed these 
by renaming one of the two variables.  Additionally, I've made the Function*->ExFunc map in 
ExternalFunctions.cpp a ManagedStatic object, so that cleanup will be done on llvm_shutdown.  In repeated
uses of the interpreter, where the same Function* address may get used for completely differnet functions,
this was causing a crash.
llvm-svn: 40558 
							
						 
						
							2007-07-27 18:26:35 +00:00  
				
					
						
							
							
								 
						
							
								8a1d1ac925 
								
							 
						 
						
							
							
								
								Fix typo.  
							
							... 
							
							
							
							llvm-svn: 40025 
							
						 
						
							2007-07-18 23:50:19 +00:00  
				
					
						
							
							
								 
						
							
								bb8ea8cefc 
								
							 
						 
						
							
							
								
								Fix dominator info update to accommodate CFG changes.  
							
							... 
							
							
							
							This fixes PR1559.
llvm-svn: 40024 
							
						 
						
							2007-07-18 23:48:20 +00:00  
				
					
						
							
							
								 
						
							
								29ccf8ba52 
								
							 
						 
						
							
							
								
								Disable claims to preserve analysis until open issues are resolved.  
							
							... 
							
							
							
							llvm-svn: 39834 
							
						 
						
							2007-07-13 21:53:42 +00:00  
				
					
						
							
							
								 
						
							
								12358b4827 
								
							 
						 
						
							
							
								
								These rountines are now available as part of basic block utilities.  
							
							... 
							
							
							
							llvm-svn: 37955 
							
						 
						
							2007-07-06 22:03:47 +00:00  
				
					
						
							
							
								 
						
							
								0975c6d7f9 
								
							 
						 
						
							
							
								
								Preserve DominanceFrontier.  
							
							... 
							
							
							
							llvm-svn: 37820 
							
						 
						
							2007-06-29 23:11:49 +00:00  
				
					
						
							
							
								 
						
							
								9feb7f5846 
								
							 
						 
						
							
							
								
								Do not filter loop if candidate branch is in loop header.  
							
							... 
							
							
							
							llvm-svn: 37792 
							
						 
						
							2007-06-29 01:39:53 +00:00  
				
					
						
							
							
								 
						
							
								6ba5ad482f 
								
							 
						 
						
							
							
								
								- Undo previous check and allow loop switch for condtion that is not inside  
							
							... 
							
							
							
							loop.
- Avoid loop unswich for loop header branch.
- While cloning dominators fix typo and handle self dominating blocks.
llvm-svn: 37772 
							
						 
						
							2007-06-28 02:05:46 +00:00  
				
					
						
							
							
								 
						
							
								3304e469f7 
								
							 
						 
						
							
							
								
								Update LoopUnswitch pass to preserve DomiantorTree.  
							
							... 
							
							
							
							llvm-svn: 37771 
							
						 
						
							2007-06-28 00:49:00 +00:00  
				
					
						
							
							
								 
						
							
								3c723c8db7 
								
							 
						 
						
							
							
								
								If a condition is not inside a loop then the condition is suitable  
							
							... 
							
							
							
							to loop unswitch candidate for the loop.
llvm-svn: 37770 
							
						 
						
							2007-06-28 00:44:10 +00:00  
				
					
						
							
							
								 
						
							
								506310d3dd 
								
							 
						 
						
							
							
								
								Avoid non-trivial loop unswitching while optimizing for size.  
							
							... 
							
							
							
							llvm-svn: 37446 
							
						 
						
							2007-06-06 00:21:03 +00:00  
				
					
						
							
							
								 
						
							
								9557247412 
								
							 
						 
						
							
							
								
								Fix PR1333  
							
							... 
							
							
							
							Testcases :
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070507/049451.html 
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070507/049452.html 
llvm-svn: 36955 
							
						 
						
							2007-05-09 08:24:12 +00:00  
				
					
						
							
							
								 
						
							
								8c78a0bff0 
								
							 
						 
						
							
							
								
								Drop 'const'  
							
							... 
							
							
							
							llvm-svn: 36662 
							
						 
						
							2007-05-03 01:11:54 +00:00  
				
					
						
							
							
								 
						
							
								e95c6ad802 
								
							 
						 
						
							
							
								
								Use 'static const char' instead of 'static const int'.  
							
							... 
							
							
							
							Due to darwin gcc bug, one version of darwin linker coalesces
static const int, which defauts PassID based pass identification.
llvm-svn: 36652 
							
						 
						
							2007-05-02 21:39:20 +00:00  
				
					
						
							
							
								 
						
							
								09f162ca6a 
								
							 
						 
						
							
							
								
								Do not use typeinfo to identify pass in pass manager.  
							
							... 
							
							
							
							llvm-svn: 36632 
							
						 
						
							2007-05-01 21:15:47 +00:00  
				
					
						
							
							
								 
						
							
								901a27d892 
								
							 
						 
						
							
							
								
								Now LoopUnswitch is a LoopPass.  
							
							... 
							
							
							
							llvm-svn: 34992 
							
						 
						
							2007-03-07 00:26:10 +00:00  
				
					
						
							
							
								 
						
							
								558990e189 
								
							 
						 
						
							
							
								
								Use more efficient test for one value in a ConstantInt.  
							
							... 
							
							
							
							llvm-svn: 34859 
							
						 
						
							2007-03-02 23:35:28 +00:00  
				
					
						
							
							
								 
						
							
								97517ff930 
								
							 
						 
						
							
							
								
								Use efficient container SmallPtrSet  
							
							... 
							
							
							
							llvm-svn: 34640 
							
						 
						
							2007-02-26 20:22:50 +00:00  
				
					
						
							
							
								 
						
							
								967b84c681 
								
							 
						 
						
							
							
								
								Do not unswitch loop on same value again and again.  
							
							... 
							
							
							
							llvm-svn: 34638 
							
						 
						
							2007-02-26 19:31:58 +00:00  
				
					
						
							
							
								 
						
							
								557ab15e71 
								
							 
						 
						
							
							
								
								Apply the VISIBILITY_HIDDEN field to the remaining anonymous classes in  
							
							... 
							
							
							
							the Transforms library. This reduces debug library size by 132 KB, debug
binary size by 376 KB, and reduces link time for llvm tools slightly.
llvm-svn: 33939 
							
						 
						
							2007-02-05 23:32:05 +00:00  
				
					
						
							
							
								 
						
							
								1bfc7ab6a7 
								
							 
						 
						
							
							
								
								Switch inliner over to use DenseMap instead of std::map for ValueMap.  This  
							
							... 
							
							
							
							speeds up the inliner 16%.
llvm-svn: 33801 
							
						 
						
							2007-02-03 00:08:31 +00:00  
				
					
						
							
							
								 
						
							
								024f4ab383 
								
							 
						 
						
							
							
								
								Adjust #includes to match movement of constant folding code from transformutils to libanalysis.  
							
							... 
							
							
							
							llvm-svn: 33680 
							
						 
						
							2007-01-30 23:46:24 +00:00  
				
					
						
							
							
								 
						
							
								a94d394ad2 
								
							 
						 
						
							
							
								
								For PR1043:  
							
							... 
							
							
							
							This is the final patch for this PR. It implements some minor cleanup
in the use of IntegerType, to wit:
1. Type::getIntegerTypeMask -> IntegerType::getBitMask
2. Type::Int*Ty changed to IntegerType* from Type*
3. ConstantInt::getType() returns IntegerType* now, not Type*
This also fixes PR1120.
Patch by Sheng Zhou.
llvm-svn: 33370 
							
						 
						
							2007-01-19 21:13:56 +00:00  
				
					
						
							
							
								 
						
							
								ca82a908e3 
								
							 
						 
						
							
							
								
								fix a bug in a recent patch  
							
							... 
							
							
							
							llvm-svn: 33164 
							
						 
						
							2007-01-13 00:02:49 +00:00  
				
					
						
							
							
								 
						
							
								cddc9dfe97 
								
							 
						 
						
							
							
								
								Implement review feedback for the ConstantBool->ConstantInt merge. Chris  
							
							... 
							
							
							
							recommended that getBoolValue be replaced with getZExtValue and that
get(bool) be replaced by get(const Type*, uint64_t). This implements
those changes.
llvm-svn: 33110 
							
						 
						
							2007-01-12 04:24:46 +00:00  
				
					
						
							
							
								 
						
							
								542964f55b 
								
							 
						 
						
							
							
								
								Rename BoolTy as Int1Ty. Patch by Sheng Zhou.  
							
							... 
							
							
							
							llvm-svn: 33076 
							
						 
						
							2007-01-11 18:21:29 +00:00  
				
					
						
							
							
								 
						
							
								75b871fb1e 
								
							 
						 
						
							
							
								
								For PR1043:  
							
							... 
							
							
							
							Merge ConstantIntegral and ConstantBool into ConstantInt.
Remove ConstantIntegral and ConstantBool from LLVM.
llvm-svn: 33073 
							
						 
						
							2007-01-11 12:24:14 +00:00  
				
					
						
							
							
								 
						
							
								266e42b312 
								
							 
						 
						
							
							
								
								For PR950:  
							
							... 
							
							
							
							This patch removes the SetCC instructions and replaces them with the ICmp
and FCmp instructions. The SetCondInst instruction has been removed and
been replaced with ICmpInst and FCmpInst.
llvm-svn: 32751 
							
						 
						
							2006-12-23 06:05:41 +00:00  
				
					
						
							
							
								 
						
							
								79a42ac941 
								
							 
						 
						
							
							
								
								Switch over Transforms/Scalar to use the STATISTIC macro.  For each statistic  
							
							... 
							
							
							
							converted, we lose a static initializer.  This also allows GCC to emit warnings
about unused statistics.
llvm-svn: 32690 
							
						 
						
							2006-12-19 21:40:18 +00:00  
				
					
						
							
							
								 
						
							
								700b873130 
								
							 
						 
						
							
							
								
								Detemplatize the Statistic class.  The only type it is instantiated with  
							
							... 
							
							
							
							is 'unsigned'.
llvm-svn: 32279 
							
						 
						
							2006-12-06 17:46:33 +00:00  
				
					
						
							
							
								 
						
							
								5dbf43c983 
								
							 
						 
						
							
							
								
								Removed #include <iostream> and replaced with llvm_* streams.  
							
							... 
							
							
							
							llvm-svn: 31923 
							
						 
						
							2006-11-26 09:46:52 +00:00  
				
					
						
							
							
								 
						
							
								de46e48420 
								
							 
						 
						
							
							
								
								For PR786:  
							
							... 
							
							
							
							Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting
fall out by removing unused variables. Remaining warnings have to do with
unused functions (I didn't want to delete code without review) and unused
variables in generated code. Maintainers should clean up the remaining
issues when they see them. All changes pass DejaGnu tests and Olden.
llvm-svn: 31380 
							
						 
						
							2006-11-02 20:25:50 +00:00