llvm-project/bolt/test/merge-fdata-mixed-bat-no-lbr.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

17 lines
358 B
Plaintext

## Check that merge-fdata doesn't incorrectly merge two fdata files with boltedcollection and no_lbr tags.
# 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 boltedcollection
#--- a.fdata
boltedcollection
no_lbr
main 1
#--- b.fdata
no_lbr
main 1