mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-03 14:21:30 +00:00 
			
		
		
		
	git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8544 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			18 lines
		
	
	
		
			364 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			364 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
; Test that ds-aa is returning must-alias information when it can.
 | 
						|
 | 
						|
; RUN: llvm-as < %s | opt -no-aa -ds-aa -load-vn -gcse | llvm-dis | not grep load
 | 
						|
 | 
						|
%X = internal global int 20
 | 
						|
 | 
						|
implementation
 | 
						|
 | 
						|
int* %id(int* %P) { ret int* %P }
 | 
						|
 | 
						|
int %main() {
 | 
						|
	store int 0, int* %X
 | 
						|
	%XP = call int* %id(int* %X)
 | 
						|
	%A = load int* %XP        ; Should eliminate load!
 | 
						|
	ret int %A
 | 
						|
}
 | 
						|
 |