llvm-profgen uses profile summary based cold threshold to merge and trim cold context profile. This is to strike a good balance between profile size and performance. We've been using 99.9% as the cutoff to save profile size without affecting performance. This change switch to use 99.9% instead of 99.9999% as default cold threshold cutoff for llvm-profgen. Redundant switch csprof-cold-thres is also removed and tests cleaned up. Differential Revision: https://reviews.llvm.org/D103071
15 lines
1.0 KiB
Plaintext
15 lines
1.0 KiB
Plaintext
; test for dwarf-based cs profile
|
|
; RUN: llvm-profgen --format=extbinary --perfscript=%S/Inputs/recursion-compression-noprobe.perfscript --binary=%S/Inputs/recursion-compression-noprobe.perfbin --output=%t1 --profile-summary-cold-count=0
|
|
; RUN: llvm-profdata merge --sample --text --output=%t2 %t1
|
|
; RUN: FileCheck %S/recursion-compression-noprobe.test --input-file %t2
|
|
; RUN: llvm-profdata merge --sample --extbinary --output=%t3 %t2 && llvm-profdata merge --sample --text --output=%t4 %t3
|
|
; RUN: diff -b %t2 %t4
|
|
|
|
|
|
; test for probe-based cs profile
|
|
; RUN: llvm-profgen --format=extbinary --perfscript=%S/Inputs/recursion-compression-pseudoprobe.perfscript --binary=%S/Inputs/recursion-compression-pseudoprobe.perfbin --output=%t5 --profile-summary-cold-count=0
|
|
; RUN: llvm-profdata merge --sample --text --output=%t6 %t5
|
|
; RUN: FileCheck %S/recursion-compression-pseudoprobe.test --input-file %t6
|
|
; RUN: llvm-profdata merge --sample --extbinary --output=%t7 %t6 && llvm-profdata merge --sample --text --output=%t8 %t7
|
|
; RUN: diff -b %t6 %t8
|