xref: /llvm-project/bolt/test/X86/stale-matching-min-matched-block.test (revision 69753aa43b0a1f0d13abdf396a754aa0cc8b6a20)
168fc8dffSshaw young## This script checks the stale-matching-min-matched-block flag.
268fc8dffSshaw young
3*69753aa4SHans WennborgREQUIRES: asserts
468fc8dffSshaw youngRUN: yaml2obj %p/Inputs/blarge.yaml &> %t.exe
568fc8dffSshaw young
668fc8dffSshaw young## Testing "usqrt"
768fc8dffSshaw youngRUN: llvm-bolt %t.exe -o %t.null --b %p/Inputs/blarge_profile_stale_low_matched_blocks.yaml \
868fc8dffSshaw youngRUN:   --infer-stale-profile=1 --stale-matching-min-matched-block=75 \
968fc8dffSshaw youngRUN:   --profile-ignore-hash=1 --debug-only=bolt-prof 2>&1 | FileCheck %s
1068fc8dffSshaw young
1168fc8dffSshaw youngCHECK:    BOLT-INFO: inferred profile for 1 (50.00% of profiled, 50.00% of stale) functions responsible for 46.31% samples (552 out of 1192)
12