
This patch includes the supporting code that enables always instrumenting the function entry block by default. This patch will NOT the default behavior. It adds a variant bit in the profile version, adds new directives in text profile format, and changes llvm-profdata tool accordingly. This patch is a split of D83024 (https://reviews.llvm.org/D83024) Many test changes from D83024 are also included. Differential Revision: https://reviews.llvm.org/D84261
11 lines
570 B
Plaintext
11 lines
570 B
Plaintext
RUN: llvm-profdata show %p/Inputs/header-directives-1.proftext -o - | FileCheck %s --check-prefixes=ENTRYFIRST,CHECK
|
|
RUN: llvm-profdata show %p/Inputs/header-directives-2.proftext -o - | FileCheck %s --check-prefixes=NOTENTRYFIRST,CHECK
|
|
RUN: llvm-profdata show %p/Inputs/header-directives-3.proftext -o - | FileCheck %s --check-prefixes=ENTRYFIRST,CHECK
|
|
|
|
ENTRYFIRST: Instrumentation level: IR entry_first = 1
|
|
NOTENTRYFIRST: Instrumentation level: IR entry_first = 0
|
|
CHECK: Total functions: 1
|
|
CHECK: Maximum function count: 100
|
|
CHECK: Maximum internal block count: 90
|
|
|