Reid Spencer
							
						 | 
						
							
							
							
							
							
								
							
							
								5c132bc3af
								
							
						 | 
						
							
							
								
								For PR387:\
							
							
							
							
							
							
							
							Add getModRefInfo method to avoid overloaded virtuals
llvm-svn: 18601 
							
						 | 
						
							2004-12-07 08:11:24 +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
							
						 | 
						
							
							
							
							
							
								
							
							
								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
							
						 | 
						
							
							
							
							
							
								
							
							
								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 | 
						
					
				
					
						
							
							
								 
								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 | 
						
					
				
					
						
							
							
								 
								Alkis Evlogimenos
							
						 | 
						
							
							
							
							
							
								
							
							
								a5c04ee50f
								
							
						 | 
						
							
							
								
								Fixes to make LLVM compile with vc7.1.
							
							
							
							
							
							
							
							Patch contributed by Paolo Invernizzi!
llvm-svn: 16152 
							
						 | 
						
							2004-09-03 18:19:51 +00:00 | 
						
					
				
					
						
							
							
								 
								Alkis Evlogimenos
							
						 | 
						
							
							
							
							
							
								
							
							
								fd7a2d4477
								
							
						 | 
						
							
							
								
								Merge i*.h headers into Instructions.h as part of bug403.
							
							
							
							
							
							
							
							llvm-svn: 15325 
							
						 | 
						
							2004-07-29 12:17:34 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								c21acbfea4
								
							
						 | 
						
							
							
								
								Fix test/Regression/Analysis/BasicAA/2004-07-28-MustAliasbug.llx
							
							
							
							
							
							
							
							This also fixes the miscompilation of MallocBench/gs with dead store
elimination enabled.
llvm-svn: 15324 
							
						 | 
						
							2004-07-29 07:56:39 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								aa05a6e5a1
								
							
						 | 
						
							
							
								
								Make basicaa a bit more aggressive
							
							
							
							
							
							
							
							llvm-svn: 15252 
							
						 | 
						
							2004-07-27 02:18:52 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								6b570266b8
								
							
						 | 
						
							
							
								
								basic-aa can actually provide simple mod/ref info
							
							
							
							
							
							
							
							llvm-svn: 15251 
							
						 | 
						
							2004-07-27 02:13:55 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								782ab98c56
								
							
						 | 
						
							
							
								
								This was implemented back in march
							
							
							
							
							
							
							
							llvm-svn: 15250 
							
						 | 
						
							2004-07-27 01:59:42 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								fdcf624939
								
							
						 | 
						
							
							
								
								Do not ignore casts unless they are pointer-pointer casts.  This caused us
							
							
							
							
							
							
							
							to miscompile the SingleSource/Regression/C++/pointer_member.cpp program.
llvm-svn: 15062 
							
						 | 
						
							2004-07-21 03:56:54 +00:00 | 
						
					
				
					
						
							
							
								 
								Reid Spencer
							
						 | 
						
							
							
							
							
							
								
							
							
								30d69a5af9
								
							
						 | 
						
							
							
								
								bug 122:
							
							
							
							
							
							
							
							- Replace ConstantPointerRef usage with GlobalValue usage
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass
llvm-svn: 14942 
							
						 | 
						
							2004-07-18 00:18:30 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								cbdf371d30
								
							
						 | 
						
							
							
								
								Simplify logic.
							
							
							
							
							
							
							
							llvm-svn: 14825 
							
						 | 
						
							2004-07-14 20:27:12 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								feda9d0583
								
							
						 | 
						
							
							
								
								Fix a tiny bug in the -no-aa pass, in which it did not ever get a target data.
							
							
							
							
							
							
							
							This is a regression from 1.2, though noone uses -no-aa anyway
llvm-svn: 14245 
							
						 | 
						
							2004-06-19 08:05:58 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								fbf4dc3bd0
								
							
						 | 
						
							
							
								
								isnan is dead
							
							
							
							
							
							
							
							llvm-svn: 14191 
							
						 | 
						
							2004-06-15 21:52:58 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								66f313725c
								
							
						 | 
						
							
							
								
								llvm.isnan doesn't access memory
							
							
							
							
							
							
							
							llvm-svn: 14151 
							
						 | 
						
							2004-06-11 06:17:13 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								59c8ed8843
								
							
						 | 
						
							
							
								
								Move the -no-aa AA implementation into this file since both of these
							
							
							
							
							
							
							
							alias analysis implementations are special: they do not autoforward to a
chained implementation of alias analysis
llvm-svn: 13683 
							
						 | 
						
							2004-05-23 21:15:12 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								c9e37d7cc9
								
							
						 | 
						
							
							
								
								Hrm, operator new and new[] do not belong here.  We should not CSE them!  :)
							
							
							
							
							
							
							
							llvm-svn: 12859 
							
						 | 
						
							2004-04-12 05:16:42 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								403abb824f
								
							
						 | 
						
							
							
								
								operator new & operator new[] do not kill any legal memory locations.
							
							
							
							
							
							
							
							llvm-svn: 12833 
							
						 | 
						
							2004-04-11 18:16:34 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								c5fad355f8
								
							
						 | 
						
							
							
								
								Allow clients to be more efficient.
							
							
							
							
							
							
							
							llvm-svn: 12831 
							
						 | 
						
							2004-04-11 16:43:07 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								4a1b03c773
								
							
						 | 
						
							
							
								
								Add a couple of more functions that cannot access memory (the intrinsics) and
							
							
							
							
							
							
							
							don't write to memory
llvm-svn: 12808 
							
						 | 
						
							2004-04-10 06:55:27 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								69193f93b6
								
							
						 | 
						
							
							
								
								Support getelementptr instructions which use uint's to index into structure
							
							
							
							
							
							
							
							types and can have arbitrary 32- and 64-bit integer types indexing into
sequential types.
llvm-svn: 12653 
							
						 | 
						
							2004-04-05 01:30:19 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								8ad948ddbd
								
							
						 | 
						
							
							
								
								Add some missing functions.  Make sure to handle calls together in case the
							
							
							
							
							
							
							
							client has another VN implementation that can VN calls.
llvm-svn: 12427 
							
						 | 
						
							2004-03-16 03:41:35 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								ea42c857d6
								
							
						 | 
						
							
							
								
								Fix a minor bug, implementing GCSE/call_pure_function.ll
							
							
							
							
							
							
							
							Also, add some stuff I missed before.
llvm-svn: 12417 
							
						 | 
						
							2004-03-15 04:18:28 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								d82256a7a1
								
							
						 | 
						
							
							
								
								Teach basicaa about some stdc functions.
							
							
							
							
							
							
							
							llvm-svn: 12408 
							
						 | 
						
							2004-03-15 03:36:49 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								f9e69b4553
								
							
						 | 
						
							
							
								
								Fix a couple of minor problems.  Because PHI nodes can use themselves, this
							
							
							
							
							
							
							
							could cause infinite loops.  Also, getUnderlyingObject can return null
llvm-svn: 12351 
							
						 | 
						
							2004-03-12 23:12:55 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								a036253872
								
							
						 | 
						
							
							
								
								Implement mod/ref analysis for a trivial case where locals don't escape.
							
							
							
							
							
							
							
							This comes up when you have a local array on the stack and you never pass
the address of elements around.
llvm-svn: 12349 
							
						 | 
						
							2004-03-12 22:39:00 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								6f6e0f29ad
								
							
						 | 
						
							
							
								
								Expand on my note-to-self
							
							
							
							
							
							
							
							llvm-svn: 12029 
							
						 | 
						
							2004-03-01 02:44:44 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								494d510769
								
							
						 | 
						
							
							
								
								Fix a soon-to-be-missing #include
							
							
							
							
							
							
							
							llvm-svn: 11707 
							
						 | 
						
							2004-02-22 06:26:17 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								729ea9e1d9
								
							
						 | 
						
							
							
								
								Fix thinko
							
							
							
							
							
							
							
							llvm-svn: 11027 
							
						 | 
						
							2004-01-30 22:48:02 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								f0eac5d0d3
								
							
						 | 
						
							
							
								
								Implement the pointsToConstantMemory() method.
							
							
							
							
							
							
							
							llvm-svn: 11022 
							
						 | 
						
							2004-01-30 22:17:24 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								c99dd898af
								
							
						 | 
						
							
							
								
								Eliminate use of ConstantHandling itf
							
							
							
							
							
							
							
							llvm-svn: 10780 
							
						 | 
						
							2004-01-12 17:57:32 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								5f4c6f55b6
								
							
						 | 
						
							
							
								
								Add a note
							
							
							
							
							
							
							
							llvm-svn: 10617 
							
						 | 
						
							2003-12-28 04:03:49 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								1eed55d6b9
								
							
						 | 
						
							
							
								
								Factor out some duplicated code, implement the rest of the cases in
							
							
							
							
							
							
							
							BasicAA/2003-12-11-ConstExprGEP.ll
llvm-svn: 10412 
							
						 | 
						
							2003-12-11 23:20:16 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								6ea17f77f8
								
							
						 | 
						
							
							
								
								Fix PR86.  This makes basicaa _SIGNIFICANLY_ more aggressive with getelementptr's
							
							
							
							
							
							
							
							llvm-svn: 10410 
							
						 | 
						
							2003-12-11 22:44:13 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								17790fbb5b
								
							
						 | 
						
							
							
								
								Fix a glaring bug
							
							
							
							
							
							
							
							llvm-svn: 10400 
							
						 | 
						
							2003-12-11 06:06:28 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								bc1197f292
								
							
						 | 
						
							
							
								
								Realize the gep P, <zeros> must aliases P.
							
							
							
							
							
							
							
							This is a partial fix for PR 86
llvm-svn: 10399 
							
						 | 
						
							2003-12-11 06:02:00 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								abb3bea6ce
								
							
						 | 
						
							
							
								
								With Brian's change to AA.h we can now clean out this uglyness
							
							
							
							
							
							
							
							llvm-svn: 10398 
							
						 | 
						
							2003-12-11 05:44:59 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								a346e64218
								
							
						 | 
						
							
							
								
								Fix file header
							
							
							
							
							
							
							
							llvm-svn: 10219 
							
						 | 
						
							2003-11-25 20:11:47 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								388bc98954
								
							
						 | 
						
							
							
								
								Use gep_type_begin/end instead of looking for ubytes
							
							
							
							
							
							
							
							llvm-svn: 10217 
							
						 | 
						
							2003-11-25 20:10:07 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								359974801e
								
							
						 | 
						
							
							
								
								Finegrainify namespacification
							
							
							
							
							
							
							
							llvm-svn: 10210 
							
						 | 
						
							2003-11-25 18:33:40 +00:00 | 
						
					
				
					
						
							
							
								 
								Brian Gaeke
							
						 | 
						
							
							
							
							
							
								
							
							
								960707c335
								
							
						 | 
						
							
							
								
								Put all LLVM code into the llvm namespace, as per bug 109.
							
							
							
							
							
							
							
							llvm-svn: 9903 
							
						 | 
						
							2003-11-11 22:41:34 +00:00 | 
						
					
				
					
						
							
							
								 
								John Criswell
							
						 | 
						
							
							
							
							
							
								
							
							
								482202a601
								
							
						 | 
						
							
							
								
								Added LLVM project notice to the top of every C++ source file.
							
							
							
							
							
							
							
							Header files will be on the way.
llvm-svn: 9298 
							
						 | 
						
							2003-10-20 19:43:21 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								092af3f36e
								
							
						 | 
						
							
							
								
								Fix bug: BasicAA/2003-09-19-LocalArgument.ll
							
							
							
							
							
							
							
							llvm-svn: 8615 
							
						 | 
						
							2003-09-20 03:08:47 +00:00 | 
						
					
				
					
						
							
							
								 
								Misha Brukman
							
						 | 
						
							
							
							
							
							
								
							
							
								329983228f
								
							
						 | 
						
							
							
								
								Fixed spelling and grammar.
							
							
							
							
							
							
							
							llvm-svn: 8478 
							
						 | 
						
							2003-09-11 18:14:24 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								cedbb88d05
								
							
						 | 
						
							
							
								
								Reuse the values if they are constants: this is important so that we index into the right structure field
							
							
							
							
							
							
							
							This fixes bug: BasicAA/2003-07-03-BasicAACrash.ll
llvm-svn: 7093 
							
						 | 
						
							2003-07-03 06:42:38 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								1bec75e730
								
							
						 | 
						
							
							
								
								Implement handling of constantexprs for disambiguation.  This implements
							
							
							
							
							
							
							
							BasicAA/featuretest.ll:constexpr_test
llvm-svn: 6740 
							
						 | 
						
							2003-06-17 15:25:37 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								78dd43245d
								
							
						 | 
						
							
							
								
								Be more robust in the face of undefined behavior.
							
							
							
							
							
							
							
							Fixes bug: BasicAA/2003-06-01-AliasCrash.ll
llvm-svn: 6538 
							
						 | 
						
							2003-06-02 05:42:39 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								060f38121e
								
							
						 | 
						
							
							
								
								Fix Bug: BasicAA/2003-05-21-GEP-Problem.ll
							
							
							
							
							
							
							
							llvm-svn: 6270 
							
						 | 
						
							2003-05-21 20:23:26 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								be2d24e3b5
								
							
						 | 
						
							
							
								
								Fix BasicAA/2003-04-25-GEPCrash.ll
							
							
							
							
							
							
							
							llvm-svn: 5940 
							
						 | 
						
							2003-04-25 18:03:06 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								4183b34d39
								
							
						 | 
						
							
							
								
								Fix bug: BasicAA/2003-04-22-GEPProblem.ll
							
							
							
							
							
							
							
							llvm-svn: 5858 
							
						 | 
						
							2003-04-22 22:00:27 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								1520eda3e3
								
							
						 | 
						
							
							
								
								Remove unneccesary forward decl
							
							
							
							
							
							
							
							llvm-svn: 5710 
							
						 | 
						
							2003-03-06 16:37:29 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								ce848a3397
								
							
						 | 
						
							
							
								
								Fix bug: BasicAA/2003-03-04-GEPCrash.ll
							
							
							
							
							
							
							
							llvm-svn: 5695 
							
						 | 
						
							2003-03-04 16:40:17 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								96afad55b9
								
							
						 | 
						
							
							
								
								Fix a problem with negative indexes
							
							
							
							
							
							
							
							llvm-svn: 5681 
							
						 | 
						
							2003-03-02 23:43:34 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								053994f5a6
								
							
						 | 
						
							
							
								
								Fix bug: BasicAA/2003-02-26-AccessSizeTest.ll
							
							
							
							
							
							
							
							llvm-svn: 5645 
							
						 | 
						
							2003-02-26 21:57:23 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								d98ac881ca
								
							
						 | 
						
							
							
								
								Fix several bugs in basic-aa
							
							
							
							
							
							
							
							llvm-svn: 5643 
							
						 | 
						
							2003-02-26 21:28:49 +00:00 | 
						
					
				
					
						
							
							
								 
								Chris Lattner
							
						 | 
						
							
							
							
							
							
								
							
							
								d6a2a99a1b
								
							
						 | 
						
							
							
								
								Move BasicAA pass out to it's own header file
							
							
							
							
							
							
							
							llvm-svn: 5640 
							
						 | 
						
							2003-02-26 19:41:54 +00:00 |