mirror-llvm-project/bolt/test/merge-fdata-no-lbr-event-multi.test
Amir Ayupov d63f99627b
[BOLT][merge-fdata] Preserve event names
Test Plan: added merge-fdata-no-lbr-event*.test

Reviewers:
maksfb, paschalis-mpeis, yozhu, yota9, yavtuk, rafaelauler, ayermolo

Reviewed By: rafaelauler

Pull Request: https://github.com/llvm/llvm-project/pull/199323
2026-05-27 00:38:55 -07:00

22 lines
608 B
Text

## Check that merge-fdata preserves and propagates multiple event names from
## the "no_lbr" header line, deduplicating across input files, when combined
## with boltedcollection.
# REQUIRES: system-linux
# RUN: split-file %s %t
# RUN: merge-fdata %t/a.fdata %t/b.fdata -o %t/merged.fdata
# RUN: FileCheck %s --input-file %t/merged.fdata
# CHECK: boltedcollection
# CHECK: no_lbr{{.*( cycles:u| instructions)( cycles:u| instructions)}}
# CHECK: 0 main 10 150
#--- a.fdata
boltedcollection
no_lbr cycles:u instructions
0 main 10 100
#--- b.fdata
boltedcollection
no_lbr instructions cycles:u
0 main 10 50