summaryrefslogtreecommitdiff
path: root/test/profile/instrprof-value-prof.test
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-05-25 21:27:02 +0000
committerXinliang David Li <davidxl@google.com>2016-05-25 21:27:02 +0000
commitf234154a8706fc1f8a88c728e7ea9825a21bcfc8 (patch)
tree63fd7ce579a60801d8b29954c0a7f65cea864206 /test/profile/instrprof-value-prof.test
parente46c1085798c224058942cd5aa7577fdfb8f43da (diff)
[profile] Add early checking to bypass node pointer update
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@270766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile/instrprof-value-prof.test')
-rw-r--r--test/profile/instrprof-value-prof.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/profile/instrprof-value-prof.test b/test/profile/instrprof-value-prof.test
index 5b4e616f2..dc9364357 100644
--- a/test/profile/instrprof-value-prof.test
+++ b/test/profile/instrprof-value-prof.test
@@ -11,6 +11,9 @@
// RUN: llvm-profdata merge -text %t.ir.profdata -o %t.ir.proftxt
// RUN: FileCheck %S/Inputs/instrprof-value-prof-real.c --check-prefix=IR < %t.ir.proftxt
+// RUN: %clang_profgen -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -mllvm -vp-static-alloc=true -o %t.ir.warn %S/Inputs/instrprof-value-prof-real.c
+// RUN: env LLVM_PROFILE_FILE=%t.ir.profraw %run %t.ir.warn 2>&1 |FileCheck --check-prefix=WARNING %s
+
// IR level instrumentation with dynamic memory allocation
// RUN: %clang_profgen -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -mllvm -vp-static-alloc=false -mllvm -vp-counters-per-site=256 -o %t.ir.dyn %S/Inputs/instrprof-value-prof-real.c
// RUN: env LLVM_PROFILE_FILE=%t.ir.dyn.profraw %run %t.ir.dyn
@@ -18,3 +21,5 @@
// RUN: llvm-profdata show --all-functions -ic-targets %t.ir.dyn.profdata | FileCheck %S/Inputs/instrprof-value-prof-real.c
// RUN: llvm-profdata merge -text %t.ir.dyn.profdata -o %t.ir.dyn.proftxt
// RUN: FileCheck %S/Inputs/instrprof-value-prof-real.c --check-prefix=IR < %t.ir.dyn.proftxt
+
+// WARNING: LLVM Profile Warning: