llvm.org GIT mirror llvm / 365b18e
Updated tests to use ProfileVerifer to test ProfileLoader and ProfileEstimator. (Keep disabled test disabled until selfhosted build issue is resolved.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81008 91177308-0d34-0410-b5e6-96231b3b80d8 Andreas Neustifter 11 years ago
2 changed file(s) with 15 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llvm-as < %s | opt -insert-edge-profiling | llvm-dis | tee %t1 | FileCheck %s
0 ; Test the edge profiling instrumentation.
1 ; RUN: llvm-as < %s | opt -insert-edge-profiling | llvm-dis | FileCheck %s
12
23 ; ModuleID = ''
34
0 ; RUN: llvm-as %s -o %t1
1
2 ; FIXME: The RUX parts of the test are disabled for now, they aren't working on
3 ; llvm-gcc-x86_64-darwin10-selfhost.
4
5 ; Test the edge optimal profiling instrumentation.
16 ; RUN: opt %t1 -insert-optimal-edge-profiling -o %t2
2
3 ; FIXME: These parts of the test are disabled for now, they aren't working on
4 ; llvm-gcc-x86_64-darwin10-selfhost.
5
67 ; RUX: llvm-dis < %t2 | FileCheck --check-prefix=INST %s
8
9 ; Test the creation, reading and displaying of profile
710 ; RUX: rm -f llvmprof.out
811 ; RUX: lli -load %llvmlibsdir/profile_rt%shlibext %t2
912 ; RUX: lli -load %llvmlibsdir/profile_rt%shlibext %t2 1 2
1013 ; RUX: llvm-prof -print-all-code %t1 | FileCheck --check-prefix=PROF %s
14
15 ; Test the loaded profile also with verifier.
16 ; RUX opt %t1 -profile-loader -profile-verifier -o %t3
17
18 ; Test profile estimator.
19 ; RUN: opt %t1 -profile-estimator -profile-verifier -o %t3
1120
1221 ; PROF: 1. 2/4 oneblock
1322 ; PROF: 2. 2/4 main