IR value profile testing cleanup

llvm-svn: 268608
This commit is contained in:
Xinliang David Li 2016-05-05 05:41:02 +00:00
parent 022b5bcb7a
commit 0c09036232
2 changed files with 5 additions and 4 deletions

View File

@ -43,7 +43,7 @@ int main() {
return 0;
}
// IR: :ir
// CHECK-LABEL: main:
// CHECK: [ 0, foo_1_1_1_1_1_1_1_1_1, 1000 ]
// CHECK-NEXT: [ 0, foo_1_1_1_1_1_1_1_1_2, 999 ]

View File

@ -3,9 +3,10 @@
// 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 -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -c -o %t.ir.o %S/Inputs/instrprof-value-prof-real.c
// RUN: %clang_profgen -O2 -o %t.ir %t.ir.o
// IR level instrumentation
// RUN: %clang_profgen -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -o %t.ir %S/Inputs/instrprof-value-prof-real.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-real.c
// 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