2015-04-21 01:42:22 +02:00
|
|
|
; Test that bugpoint can reduce the set of functions by replacing them with null.
|
|
|
|
;
|
2021-04-28 01:36:45 +02:00
|
|
|
; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -replace-funcs-with-null -bugpoint-crash-decl-funcs -silence-passes -safe-run-llc
|
2019-05-17 08:41:04 +02:00
|
|
|
; REQUIRES: plugins
|
2015-04-21 01:42:22 +02:00
|
|
|
|
2015-09-11 05:22:04 +02:00
|
|
|
@foo2 = alias i32 (), i32 ()* @foo
|
2015-04-21 01:42:22 +02:00
|
|
|
|
|
|
|
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"
|