summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-05-10 23:52:02 +0000
committerXinliang David Li <davidxl@google.com>2016-05-10 23:52:02 +0000
commitd9d88a21279956a38c0b7176b3cbadcd259e1412 (patch)
tree0cd2ed99da45b83ec152f34547df16c3eae363dd /test
parent59977c238a3e89eecde3181129f407644cb0f07f (diff)
Revert r268130 -- more bot failure
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@269142 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/profile/Inputs/instrprof-value-prof-real.c1
-rw-r--r--test/profile/instrprof-value-prof-shared.test1
-rw-r--r--test/profile/instrprof-value-prof.test7
3 files changed, 3 insertions, 6 deletions
diff --git a/test/profile/Inputs/instrprof-value-prof-real.c b/test/profile/Inputs/instrprof-value-prof-real.c
index 7893b90d4..a87332451 100644
--- a/test/profile/Inputs/instrprof-value-prof-real.c
+++ b/test/profile/Inputs/instrprof-value-prof-real.c
@@ -53,7 +53,6 @@ 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 ]
diff --git a/test/profile/instrprof-value-prof-shared.test b/test/profile/instrprof-value-prof-shared.test
index 11050a28f..9b0ebf539 100644
--- a/test/profile/instrprof-value-prof-shared.test
+++ b/test/profile/instrprof-value-prof-shared.test
@@ -14,4 +14,3 @@
// 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: llvm-profdata show --all-functions -ic-targets %t.ir.profdata | FileCheck %S/Inputs/instrprof-value-prof-real.c --check-prefix=SHARED
-// RUN: FileCheck %S/Inputs/instrprof-value-prof-real.c --check-prefix=IR < %t.ir.proftxt
diff --git a/test/profile/instrprof-value-prof.test b/test/profile/instrprof-value-prof.test
index 76cf1bae3..4040ef367 100644
--- a/test/profile/instrprof-value-prof.test
+++ b/test/profile/instrprof-value-prof.test
@@ -3,10 +3,9 @@
// 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
-// 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
+// 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
// 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