mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	This prevents the emission of DAG-generated vreg definitions after a tail call be dropping them entirely (on the grounds that nothing could use them anyway, and they interfere with O0 CodeGen). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185754 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			17 lines
		
	
	
		
			405 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			405 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: llc -mtriple=thumbv7-linux-gnueabi -O0 -arm-tail-calls < %s | FileCheck %s
 | |
| 
 | |
| ; Primarily a non-crash test: Thumbv7 Linux does not have FastISel support,
 | |
| ; which led (via a convoluted route) to DAG nodes after a TC_RETURN that
 | |
| ; couldn't possibly work.
 | |
| 
 | |
| declare i8* @g(i8*)
 | |
| 
 | |
| define i8* @f(i8* %a) {
 | |
| entry:
 | |
|   %0 = tail call i8* @g(i8* %a)
 | |
|   ret i8* %0
 | |
| ; CHECK: b g
 | |
| ; CHECK-NOT: ldr
 | |
| ; CHECK-NOT: str
 | |
| }
 |