mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
aafa6f8385
Add a mode in which profile read errors are not immediately treated as fatal. In this mode, merging makes forward progress and reports failure only if no inputs can be read. Differential Revision: https://reviews.llvm.org/D66985 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370827 91177308-0d34-0410-b5e6-96231b3b80d8
52 lines
2.7 KiB
Plaintext
52 lines
2.7 KiB
Plaintext
RUN: echo ":ir" > %t.input
|
|
RUN: echo "_ZN6Thread5StartEv" >> %t.input
|
|
RUN: echo "# Func Hash:" >> %t.input
|
|
RUN: echo "288793635542036872" >> %t.input
|
|
RUN: echo "# Num Counters:" >> %t.input
|
|
RUN: echo "3" >> %t.input
|
|
RUN: echo "# Counter Values:" >> %t.input
|
|
RUN: echo "0" >> %t.input
|
|
RUN: echo "12" >> %t.input
|
|
RUN: echo "12" >> %t.input
|
|
RUN: echo "# Num Value Kinds:" >> %t.input
|
|
RUN: echo "1" >> %t.input
|
|
RUN: echo "# ValueKind = IPVK_IndirectCallTarget:" >> %t.input
|
|
RUN: echo "0" >> %t.input
|
|
RUN: echo "# NumValueSites:" >> %t.input
|
|
RUN: echo "2" >> %t.input
|
|
RUN: echo "2" >> %t.input
|
|
RUN: echo "f1:10" >> %t.input
|
|
RUN: echo "f2:0" >> %t.input
|
|
RUN: echo "1" >> %t.input
|
|
RUN: echo ":10" >> %t.input
|
|
|
|
RUN: not llvm-profdata merge %t.input -text -output=/dev/null 2>&1 | FileCheck %s --check-prefix=BROKEN
|
|
BROKEN: warning: {{.*}}invalid-profdata.test.tmp.input: Malformed instrumentation profile data
|
|
BROKEN-NEXT: error: No profiles could be merged.
|
|
|
|
RUN: echo ":ir" > %t.input
|
|
RUN: echo "_ZN6Thread5StartEv" >> %t.input
|
|
RUN: echo "# Func Hash:" >> %t.input
|
|
RUN: echo "288793635542036872" >> %t.input
|
|
RUN: echo "# Num Counters:" >> %t.input
|
|
RUN: echo "3" >> %t.input
|
|
RUN: echo "# Counter Values:" >> %t.input
|
|
RUN: echo "0" >> %t.input
|
|
RUN: echo "12" >> %t.input
|
|
RUN: echo "12" >> %t.input
|
|
RUN: echo "# Num Value Kinds:" >> %t.input
|
|
RUN: echo "1" >> %t.input
|
|
RUN: echo "# ValueKind = IPVK_IndirectCallTarget:" >> %t.input
|
|
RUN: echo "0" >> %t.input
|
|
RUN: echo "# NumValueSites:" >> %t.input
|
|
RUN: echo "2" >> %t.input
|
|
RUN: echo "2" >> %t.input
|
|
RUN: echo "f1:10" >> %t.input
|
|
RUN: echo "f2:0" >> %t.input
|
|
RUN: echo "1" >> %t.input
|
|
RUN: echo "** External Symbol **:10" >> %t.input
|
|
|
|
# RUN: llvm-profdata merge %t.input -text -output=%t.out && cat %t.out | FileCheck %s
|
|
|
|
CHECK: ** External Symbol **:10
|