[compiler-rt] r258732 - [PGO] Add a test case covering IR based VP instrumentation
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 25 14:33:29 PST 2016
Author: davidxl
Date: Mon Jan 25 16:33:29 2016
New Revision: 258732
URL: http://llvm.org/viewvc/llvm-project?rev=258732&view=rev
Log:
[PGO] Add a test case covering IR based VP instrumentation
Modified:
compiler-rt/trunk/test/profile/instrprof-value-prof.test
Modified: compiler-rt/trunk/test/profile/instrprof-value-prof.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/instrprof-value-prof.test?rev=258732&r1=258731&r2=258732&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/instrprof-value-prof.test (original)
+++ compiler-rt/trunk/test/profile/instrprof-value-prof.test Mon Jan 25 16:33:29 2016
@@ -2,3 +2,10 @@
// 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-real.c
+
+// do two step build before the clang option is ready
+// RUN: %clang_profgen -O2 -mllvm -disable-vp=false -mllvm -profile-generate=%t.ir.profraw -c -o %t.ir.o %S/Inputs/instrprof-value-prof-real.c
+// RUN: %clang_profgen -O2 -fprofile-instr-generate -o %t.ir %t.ir.o
+// RUN: %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-real.c
More information about the llvm-commits
mailing list