blob: b6976c9a2bbb77fe12d74cfa19c2709cc29224f2 [file] [log] [blame]
JF Bastienf87e20d2015-04-20 23:42:22 +00001; Test that bugpoint can reduce the set of functions by replacing them with null.
2;
Vedant Kumar67fdb6b2018-02-09 05:09:48 +00003; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -replace-funcs-with-null -bugpoint-crash-decl-funcs -silence-passes -safe-run-llc --opt-command opt
JF Bastienf87e20d2015-04-20 23:42:22 +00004; REQUIRES: loadable_module
5
David Blaikie2f408302015-09-11 03:22:04 +00006@foo2 = alias i32 (), i32 ()* @foo
JF Bastienf87e20d2015-04-20 23:42:22 +00007
8define i32 @foo() { ret i32 1 }
9
10define i32 @test() {
11 call i32 @test()
12 ret i32 %1
13}
14
15define i32 @bar() { ret i32 2 }
16
17@llvm.used = appending global [1 x i8*] [i8* bitcast (i32 ()* @foo to i8*)], section "llvm.metadata"