~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/BugPoint/replace-funcs-with-null.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 ()* @foo
 
7
 
 
8
define i32 @foo() { ret i32 1 }
 
9
 
 
10
define i32 @test() {
 
11
        call i32 @test()
 
12
        ret i32 %1
 
13
}
 
14
 
 
15
define i32 @bar() { ret i32 2 }
 
16
 
 
17
@llvm.used = appending global [1 x i8*] [i8* bitcast (i32 ()* @foo to i8*)], section "llvm.metadata"