xref: /llvm-project/bolt/test/X86/infer_no_exits.test (revision c641fc3a4cd5e0d1b06f401ce48b5e189c221d94)
1753498eeSshaw young## This verifies that functions where an exit block has a landing pad are covered by stale profile inference.
2753498eeSshaw young# RUN: %clangxx %cxxflags %p/Inputs/infer_no_exits.s -o %t.exe
3753498eeSshaw young# RUN: link_fdata %s %t.exe %t.preagg PREAGG
4753498eeSshaw young# RUN: perf2bolt %t.exe -p %t.preagg --pa -o %t.fdata -w %t.yaml
5753498eeSshaw young# RUN: sed -i '0,/hash:/s/0x[0-9A-Fa-f]\{16\}/0x0000000000000000/' %t.yaml
6753498eeSshaw young# RUN: llvm-bolt %t.exe -data %t.yaml -o %t.null -v=1 -infer-stale-profile 2>&1 \
7753498eeSshaw young# RUN:   | FileCheck %s
8753498eeSshaw young
9753498eeSshaw young# PREAGG: B X:0 #main# 1 0
10753498eeSshaw young
11*c641fc3aSAmir Ayupov# CHECK: BOLT-INFO: inferred profile for 1 (100.00% of profiled, 100.00% of stale) functions
12