
The memprof profiles and binaries need to be updated in case of version updates. This change adds three scripts for llvm-profdata, clang and llvm tests where memprof profiles are used as inputs. Also update the tests, profiles and binaries in this change. Change based on the review suggestions in D145023. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D145644
22 lines
750 B
Plaintext
22 lines
750 B
Plaintext
REQUIRES: x86_64-linux
|
|
|
|
RUN: echo ":ir" > %t.proftext
|
|
RUN: echo "main" >> %t.proftext
|
|
RUN: echo "742261418966908927" >> %t.proftext
|
|
RUN: echo "1" >> %t.proftext
|
|
RUN: echo "1" >> %t.proftext
|
|
|
|
To update the inputs used below run Inputs/update_memprof_inputs.sh /path/to/updated/clang
|
|
RUN: llvm-profdata merge %t.proftext %p/Inputs/basic.memprofraw --profiled-binary %p/Inputs/basic.memprofexe -o %t.prof
|
|
RUN: llvm-profdata show %t.prof | FileCheck %s
|
|
|
|
For now we only check the validity of the instrumented profile since we don't
|
|
have a way to display the contents of the memprof indexed format yet.
|
|
|
|
CHECK: Instrumentation level: IR entry_first = 0
|
|
CHECK: Total functions: 1
|
|
CHECK: Maximum function count: 1
|
|
CHECK: Maximum internal block count: 0
|
|
|
|
|