source: icGREP/icgrep-devel/llvm-3.8.0.src/test/BugPoint/replace-funcs-with-null.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 533 bytes
Line 
1; Test that bugpoint can reduce the set of functions by replacing them with null.
2;
3; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -replace-funcs-with-null -bugpoint-crash-decl-funcs -silence-passes -safe-run-llc
4; REQUIRES: loadable_module
5
6@foo2 = alias i32 (), i32 ()* @foo
7
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"
Note: See TracBrowser for help on using the repository browser.