aboutsummaryrefslogtreecommitdiff
path: root/test/BugPoint/replace-funcs-with-null.ll
blob: 622f9eb67a29faa7ee22256804f678f8ef5e9f2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; Test that bugpoint can reduce the set of functions by replacing them with null.
;
; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -replace-funcs-with-null -bugpoint-crash-decl-funcs -silence-passes -safe-run-llc
; REQUIRES: loadable_module

@foo2 = alias i32 (), i32 ()* @foo

define i32 @foo() { ret i32 1 }

define i32 @test() {
	call i32 @test()
	ret i32 %1
}

define i32 @bar() { ret i32 2 }

@llvm.used = appending global [1 x i8*] [i8* bitcast (i32 ()* @foo to i8*)], section "llvm.metadata"