Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								a12b5df616 
								
							 
						 
						
							
							
								
								Actually overload the virtual method.  This fixes  
							
							 
							
							... 
							
							
							
							Regression/Analysis/GlobalsModRef/purecse.ll.  Isn't this what the
-Woverload-whatever flag would warn about :)
llvm-svn: 19018 
							
						 
						
							2004-12-17 17:12:24 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								aefd5fa18a 
								
							 
						 
						
							
							
								
								Eliminate a virtual method call  
							
							 
							
							... 
							
							
							
							llvm-svn: 18964 
							
						 
						
							2004-12-15 18:14:04 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								869d6a40a9 
								
							 
						 
						
							
							
								
								Fix a bug in -no-aa that caused two DSGraph tests to XPASS.  
							
							 
							
							... 
							
							
							
							llvm-svn: 18962 
							
						 
						
							2004-12-15 17:13:24 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								71d04bce55 
								
							 
						 
						
							
							
								
								Adjust to new alias analysis interfaces  
							
							 
							
							... 
							
							
							
							llvm-svn: 18957 
							
						 
						
							2004-12-15 07:22:13 +00:00  
						
					 
				
					
						
							
							
								 
								Alkis Evlogimenos
							
						 
						
							 
							
							
							
							
								
							
							
								346ee4c9fb 
								
							 
						 
						
							
							
								
								Add testcase and fix for yet another case where we query the size an  
							
							 
							
							... 
							
							
							
							abstract type.
llvm-svn: 18678 
							
						 
						
							2004-12-08 23:56:15 +00:00  
						
					 
				
					
						
							
							
								 
								Alkis Evlogimenos
							
						 
						
							 
							
							
							
							
								
							
							
								b1ff6d7921 
								
							 
						 
						
							
							
								
								Add testcase and fix for another case where we query the size an  
							
							 
							
							... 
							
							
							
							abstract type.
llvm-svn: 18676 
							
						 
						
							2004-12-08 23:42:11 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								5a0680245f 
								
							 
						 
						
							
							
								
								Move method out of line for better ICC support  
							
							 
							
							... 
							
							
							
							Add some ifdefs for some stuff I like to be able to toggle easily
llvm-svn: 18665 
							
						 
						
							2004-12-08 21:03:56 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								8351112192 
								
							 
						 
						
							
							
								
								Properly extern this.  
							
							 
							
							... 
							
							
							
							llvm-svn: 18664 
							
						 
						
							2004-12-08 21:00:59 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								d349d4a49c 
								
							 
						 
						
							
							
								
								Work correctly with ICC, Patch contributed by Bjørn Wennberg  
							
							 
							
							... 
							
							
							
							llvm-svn: 18630 
							
						 
						
							2004-12-08 16:22:26 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								5c132bc3af 
								
							 
						 
						
							
							
								
								For PR387:\  
							
							 
							
							... 
							
							
							
							Add getModRefInfo method to avoid overloaded virtuals
llvm-svn: 18601 
							
						 
						
							2004-12-07 08:11:24 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								9083936835 
								
							 
						 
						
							
							
								
								For PR387:\  
							
							 
							
							... 
							
							
							
							Make only one print method to avoid overloaded virtual warnings when \
compiled with -Woverloaded-virtual
llvm-svn: 18589 
							
						 
						
							2004-12-07 04:03:45 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								a27dd47e7a 
								
							 
						 
						
							
							
								
								This patch prevents an infinite recursion while compiling 103.su2cor.  
							
							 
							
							... 
							
							
							
							All SPEC CFP 95 programs now work, though the JIT isn't loading -lf2c right
so they aren't testing correctly.
llvm-svn: 18499 
							
						 
						
							2004-12-04 20:54:32 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1b784b117d 
								
							 
						 
						
							
							
								
								Fix DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll  
							
							 
							
							... 
							
							
							
							llvm-svn: 18308 
							
						 
						
							2004-11-28 20:30:15 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								24bba4d237 
								
							 
						 
						
							
							
								
								When merging to alias sets, if they are both must alias, the result is not  
							
							 
							
							... 
							
							
							
							a must alias set unless all of the pointers in the resultant set are must
aliased together.
llvm-svn: 18275 
							
						 
						
							2004-11-27 18:37:42 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								eeaa29c377 
								
							 
						 
						
							
							
								
								Add a new interface  
							
							 
							
							... 
							
							
							
							llvm-svn: 18266 
							
						 
						
							2004-11-26 21:36:25 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								f30656b437 
								
							 
						 
						
							
							
								
								When evaluating an AA, pass in size info  
							
							 
							
							... 
							
							
							
							llvm-svn: 18264 
							
						 
						
							2004-11-26 21:05:39 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								63b45b4768 
								
							 
						 
						
							
							
								
								The trick with globals actually works with allocas and malloc too  
							
							 
							
							... 
							
							
							
							llvm-svn: 18262 
							
						 
						
							2004-11-26 20:01:48 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								75819a81b2 
								
							 
						 
						
							
							
								
								A store or load cannot alias a global if the accessed amount is larger then  
							
							 
							
							... 
							
							
							
							the global.
This implements Regression/Analysis/BasicAA/global-size.ll
llvm-svn: 18261 
							
						 
						
							2004-11-26 19:20:01 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1b4e78d9e6 
								
							 
						 
						
							
							
								
								Mission accomplished!  
							
							 
							
							... 
							
							
							
							llvm-svn: 17990 
							
						 
						
							2004-11-19 16:22:24 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								c368b63515 
								
							 
						 
						
							
							
								
								Simplify conditional and fix LICM/2004-11-17-UndefIndexCrash.ll  
							
							 
							
							... 
							
							
							
							by saying what we mean
llvm-svn: 17913 
							
						 
						
							2004-11-17 17:39:39 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								f5e3cfe6d6 
								
							 
						 
						
							
							
								
								Standardize on 'class' instead of 'struct'. Gets rid of warnings in VC++  
							
							 
							
							... 
							
							
							
							Patch contributed by Jeff Cohen.
llvm-svn: 17889 
							
						 
						
							2004-11-16 06:58:55 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								068c0cf56a 
								
							 
						 
						
							
							
								
								Fix a bug that was preventing povray and namd from pool allocating correctly.  
							
							 
							
							... 
							
							
							
							llvm-svn: 17632 
							
						 
						
							2004-11-08 21:08:46 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1feea5ffc9 
								
							 
						 
						
							
							
								
								Handle assert_fail special  
							
							 
							
							... 
							
							
							
							llvm-svn: 17631 
							
						 
						
							2004-11-08 21:08:28 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								303bdd1e4b 
								
							 
						 
						
							
							
								
								Remove dead var  
							
							 
							
							... 
							
							
							
							llvm-svn: 17485 
							
						 
						
							2004-11-05 04:52:08 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								a67a030d9d 
								
							 
						 
						
							
							
								
								Don't call Constant::getNullValue when the argument could be VoidTy  
							
							 
							
							... 
							
							
							
							llvm-svn: 17457 
							
						 
						
							2004-11-03 18:51:26 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								e3c00e9eee 
								
							 
						 
						
							
							
								
								Fix comment  
							
							 
							
							... 
							
							
							
							llvm-svn: 17377 
							
						 
						
							2004-10-31 21:54:51 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								70fdac83e3 
								
							 
						 
						
							
							
								
								Improve comment  
							
							 
							
							... 
							
							
							
							llvm-svn: 17375 
							
						 
						
							2004-10-31 19:57:43 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								3f7dbfc898 
								
							 
						 
						
							
							
								
								Add more paranoid assertions :)  
							
							 
							
							... 
							
							
							
							llvm-svn: 17367 
							
						 
						
							2004-10-31 17:45:40 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								c76fef1248 
								
							 
						 
						
							
							
								
								Fix some more problems where we called getOffset before getNode()  
							
							 
							
							... 
							
							
							
							llvm-svn: 17358 
							
						 
						
							2004-10-30 07:21:19 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								8aa0bafe1a 
								
							 
						 
						
							
							
								
								Fix three bugs:  
							
							 
							
							... 
							
							
							
							1. Calls to external global VARIABLES should not be treated as a call to an
    external function
 2. Efficiently deleting an element from a vector by using std::swap with
    the back, then pop_back is NOT a good way to keep the vector sorted.
 3. Our hope of having stuff get deleted by making them redundant just won't
    work.  In particular, if we have three calls in sequence that should be
    merged: A, B, C   first we unify B into A.  To be sure that they appeared
    identical (so B would be erased) we set B = A.  On the next step, we
    unified C into A and set C = A.  Unfortunately, this is no guarantee that
    C = B, so we would fail to delete the dead call.  Switch to a more
    explicit scheme.
llvm-svn: 17357 
							
						 
						
							2004-10-30 05:41:23 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								bc740090a9 
								
							 
						 
						
							
							
								
								Fix more undefined behavior  
							
							 
							
							... 
							
							
							
							llvm-svn: 17356 
							
						 
						
							2004-10-30 04:22:45 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ba96f0fd83 
								
							 
						 
						
							
							
								
								* Add a method  
							
							 
							
							... 
							
							
							
							* change some uses of NH.getNode() in a bool context to use !NH.isNull()
* Fix a bunch of places where we depended on the (undefined) order of
  evaluation of arguments to function calls to ensure that getNode() was
  called before getOffset().  In practice, this was NOT happening.
llvm-svn: 17354 
							
						 
						
							2004-10-30 04:05:01 +00:00  
						
					 
				
					
						
							
							
								 
								Alkis Evlogimenos
							
						 
						
							 
							
							
							
							
								
							
							
								6bbc57ec12 
								
							 
						 
						
							
							
								
								Fix library name.  
							
							 
							
							... 
							
							
							
							llvm-svn: 17306 
							
						 
						
							2004-10-28 05:36:48 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								57cbe39d1e 
								
							 
						 
						
							
							
								
								Change Library Names Not To Conflict With Others When Installed  
							
							 
							
							... 
							
							
							
							llvm-svn: 17286 
							
						 
						
							2004-10-27 23:18:45 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								7dfc2d29ac 
								
							 
						 
						
							
							
								
								Convert 'struct' to 'class' in various places to adhere to the coding standards  
							
							 
							
							... 
							
							
							
							and work better with VC++.  Patch contributed by Morten Ofstad!
llvm-svn: 17281 
							
						 
						
							2004-10-27 16:14:51 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								fda51a5933 
								
							 
						 
						
							
							
								
								add support for UndefValue  
							
							 
							
							... 
							
							
							
							llvm-svn: 17260 
							
						 
						
							2004-10-26 16:23:03 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								43df507fef 
								
							 
						 
						
							
							
								
								Patch to support MSVC, contributed by Morten Ofstad  
							
							 
							
							... 
							
							
							
							llvm-svn: 17214 
							
						 
						
							2004-10-25 18:40:08 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								c1c320c335 
								
							 
						 
						
							
							
								
								We won't use automake  
							
							 
							
							... 
							
							
							
							llvm-svn: 17155 
							
						 
						
							2004-10-22 03:35:04 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								6a11a75f31 
								
							 
						 
						
							
							
								
								Initial automake generated Makefile template  
							
							 
							
							... 
							
							
							
							llvm-svn: 17136 
							
						 
						
							2004-10-18 23:55:41 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								98e541457b 
								
							 
						 
						
							
							
								
								Add support for unreachable  
							
							 
							
							... 
							
							
							
							llvm-svn: 17056 
							
						 
						
							2004-10-16 18:21:33 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								61753bf847 
								
							 
						 
						
							
							
								
								Add support for undef  
							
							 
							
							... 
							
							
							
							llvm-svn: 17055 
							
						 
						
							2004-10-16 18:19:26 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								2978437b76 
								
							 
						 
						
							
							
								
								Add support  
							
							 
							
							... 
							
							
							
							llvm-svn: 17052 
							
						 
						
							2004-10-16 18:16:19 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								3c3e058406 
								
							 
						 
						
							
							
								
								Be more careful about looking for constants when we really want constantint's.  
							
							 
							
							... 
							
							
							
							llvm-svn: 17029 
							
						 
						
							2004-10-16 16:07:10 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								52a126cb3e 
								
							 
						 
						
							
							
								
								Do not use the same variable name for two different variables in the  
							
							 
							
							... 
							
							
							
							same scope.  This confused VC++ (and probably people too!).  Patch by
Morten Ofstad!
llvm-svn: 16985 
							
						 
						
							2004-10-14 14:59:16 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								ace94df71f 
								
							 
						 
						
							
							
								
								Update to reflect changes in Makefile rules.  
							
							 
							
							... 
							
							
							
							llvm-svn: 16950 
							
						 
						
							2004-10-13 11:46:52 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ec901cc6cd 
								
							 
						 
						
							
							
								
								This nutty patch has been in my tree since before 1.3 went out, and it needs  
							
							 
							
							... 
							
							
							
							to go in.  This patch allows us to compute the trip count of loops controlled
by values loaded from constant arrays.  The cannonnical example of this is
strlen when passed a constant argument:
for (int i = 0; "constantstring"[i]; ++i) ;
return i;
In this case, it will compute that the loop executes 14 times, which means
that the exit value of i is 14.  Because of this, the loop gets DCE'd and
we are happy.  This also applies to anything that does similar things, e.g.
loops like this:
  const float Array[] = { 0.1, 2.1, 3.2, 23.21 };
  for (int i = 0; Array[i] < 20; ++i)
and is actually fairly general.
The problem with this is that it almost never triggers.  The reason is that
we run indvars and the loop optimizer only at compile time, which is before
things like strlen and strcpy have been inlined into the program from libc.
Because of this, it almost never is used (it triggers twice in specint2k).
I'm committing it because it DOES work, may be useful in the future, and
doesn't slow us down at all.  If/when we start running the loop optimizer
at link-time (-O4?) this will be very nice indeed :)
llvm-svn: 16926 
							
						 
						
							2004-10-12 01:49:27 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								6faf3949f6 
								
							 
						 
						
							
							
								
								Fix SingleSource/Benchmarks/McGill/chomp  
							
							 
							
							... 
							
							
							
							llvm-svn: 16912 
							
						 
						
							2004-10-11 04:07:27 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								e2d1af8be0 
								
							 
						 
						
							
							
								
								Build both archive and relinked objects  
							
							 
							
							... 
							
							
							
							llvm-svn: 16892 
							
						 
						
							2004-10-10 22:17:39 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								b84cbf2725 
								
							 
						 
						
							
							
								
								Initial version of automake Makefile.am file.  
							
							 
							
							... 
							
							
							
							llvm-svn: 16885 
							
						 
						
							2004-10-10 20:43:57 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								3ae7bb6b7c 
								
							 
						 
						
							
							
								
								Fix a nasty dangling pointer problem, due to a free'd pointer being left in  
							
							 
							
							... 
							
							
							
							a map.  This caused problems if a later object happened to be allocated at
the free'd object's address.
llvm-svn: 16813 
							
						 
						
							2004-10-07 20:01:31 +00:00