diff options
author | Xinliang David Li <davidxl@google.com> | 2016-05-19 21:35:34 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-05-19 21:35:34 +0000 |
commit | 3106ed0cabc1642785d98fe3364e190fa3c53718 (patch) | |
tree | 6cf42a249af337734a2faba6b2aa1c45b3c5cd50 /test/profile/instrprof-value-prof-evict.test | |
parent | 026203765237829cc13b5a3374c9eb6535507def (diff) |
[profile] entry eviction support in value profiler
Differential revision: http://reviews.llvm.org/D20408
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@270141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile/instrprof-value-prof-evict.test')
-rw-r--r-- | test/profile/instrprof-value-prof-evict.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/profile/instrprof-value-prof-evict.test b/test/profile/instrprof-value-prof-evict.test new file mode 100644 index 000000000..ac75d859a --- /dev/null +++ b/test/profile/instrprof-value-prof-evict.test @@ -0,0 +1,10 @@ +// RUN: %clang_profgen -O2 -mllvm -enable-value-profiling=true -o %t %S/Inputs/instrprof-value-prof-evict.c +// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t +// RUN: llvm-profdata merge -o %t.profdata %t.profraw +// RUN: llvm-profdata show --all-functions -ic-targets %t.profdata | FileCheck %S/Inputs/instrprof-value-prof-evict.c + +// IR level instrumentation +// RUN: %clang_profgen -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -o %t.ir %S/Inputs/instrprof-value-prof-evict.c +// RUN: env LLVM_PROFILE_FILE=%t.ir.profraw %run %t.ir +// RUN: llvm-profdata merge -o %t.ir.profdata %t.ir.profraw +// RUN: llvm-profdata show --all-functions -ic-targets %t.ir.profdata | FileCheck %S/Inputs/instrprof-value-prof-evict.c |