mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	It's silly to merge functions like these:
define void @foo(i32 %x) {
  ret void
}
define void @bar(i32 %x) {
  ret void
}
to get
define void @bar(i32) {
  tail call void @foo(i32 %0)
  ret void
}
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191786 91177308-0d34-0410-b5e6-96231b3b80d8
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			206 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			206 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: opt -S -mergefunc < %s | FileCheck %s
 | |
| 
 | |
| define void @foo(i32 %x) {
 | |
| ; CHECK-LABEL: @foo(
 | |
| ; CHECK-NOT: call
 | |
|   ret void
 | |
| }
 | |
| 
 | |
| define void @bar(i32 %x) {
 | |
| ; CHECK-LABEL: @bar(
 | |
| ; CHECK-NOT: call
 | |
|   ret void
 | |
| }
 | |
| 
 |