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@201822 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			24 lines
		
	
	
		
			389 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			389 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
; RUN: opt < %s -always-inline -instcombine -S | FileCheck %s
 | 
						|
 | 
						|
define internal void @foo(i16*) alwaysinline {
 | 
						|
  ret void
 | 
						|
}
 | 
						|
 | 
						|
define void @bar() noinline noreturn {
 | 
						|
  unreachable
 | 
						|
}
 | 
						|
 | 
						|
define void @test() {
 | 
						|
  br i1 false, label %then, label %else
 | 
						|
 | 
						|
then:
 | 
						|
  call void @bar()
 | 
						|
  unreachable
 | 
						|
 | 
						|
else:
 | 
						|
  ; CHECK-NOT: call
 | 
						|
  call void bitcast (void (i16*)* @foo to void (i8*)*) (i8* null)
 | 
						|
  ret void
 | 
						|
}
 | 
						|
 |