llvm-project/bolt/test/merge-fdata-mixed-mode.test
Amir Ayupov 97f43364cc
[BOLT][NFC] Speedup merge-fdata (#119942)
Eliminate splitting the buffer into lines, and use `std::getline`
directly. Simplify no_lbr and boltedcollection handling as well.

Test Plan: For a large fdata file (200MB), fstream version is ~10%
faster.
2024-12-14 22:26:20 -08:00

16 lines
332 B
Plaintext

## Check that merge-fdata tool correctly reports error message
## when trying to merge 'no-lbr' and 'lbr' profiles
# REQUIRES: system-linux
# RUN: split-file %s %t
# RUN: not merge-fdata %t/a.fdata %t/b.fdata 2>&1 | FileCheck %s
# CHECK: cannot mix profile with and without no_lbr
#--- a.fdata
no_lbr
main 1
#--- b.fdata
main 1