[BOLT] Check no-LBR samples in mayHaveProfileData
authorAmir Ayupov <aaupov@fb.com>
Thu, 22 Dec 2022 00:31:26 +0000 (16:31 -0800)
committerAmir Ayupov <aaupov@fb.com>
Tue, 3 Jan 2023 22:43:36 +0000 (14:43 -0800)
commit6b05a62a6b10bcdfc777dee4761f273a5c883cba
treeb526bf3bc13969ccf304809d3b8fff1676b28f33
parentb5a1de9c983d5ddaa6f3d1bf96a0896555844eb2
[BOLT] Check no-LBR samples in mayHaveProfileData

No-LBR mode wasn't tested and slipped when mayHaveProfileData was added for
Lite mode. This enables processing of profiles collected without LBR and
converted with `perf2bolt -nl` option.

Test Plan:
bin/llvm-lit -a tools/bolt/test/X86/nolbr.s
https://github.com/rafaelauler/bolt-tests/pull/20

Reviewed By: #bolt, rafauler

Differential Revision: https://reviews.llvm.org/D140256
bolt/lib/Profile/DataAggregator.cpp
bolt/lib/Profile/DataReader.cpp
bolt/test/X86/nolbr.s [new file with mode: 0644]
bolt/test/link_fdata.py