1Tests for overflow when merging instrumented profiles. 2 31- Merge profile having maximum counts with itself and verify overflow detected and saturation occurred 4RUN: llvm-profdata merge -instr %p/Inputs/overflow-instr.proftext %p/Inputs/overflow-instr.proftext -o %t.out 2>&1 | FileCheck %s -check-prefix=MERGE_OVERFLOW 5RUN: llvm-profdata show -instr %t.out | FileCheck %s --check-prefix=SHOW_OVERFLOW 6MERGE_OVERFLOW: {{.*}}: overflow: Counter overflow 7SHOW_OVERFLOW: Total functions: 1 8SHOW_OVERFLOW-NEXT: Maximum function count: 18446744073709551615 9SHOW_OVERFLOW-NEXT: Maximum internal block count: 18446744073709551615 10 112- Merge profile having maximum counts by itself and verify no overflow 12RUN: llvm-profdata merge -instr %p/Inputs/overflow-instr.proftext -o %t.out 2>&1 | FileCheck %s -check-prefix=MERGE_NO_OVERFLOW -allow-empty 13RUN: llvm-profdata show -instr %t.out | FileCheck %s --check-prefix=SHOW_NO_OVERFLOW 14MERGE_NO_OVERFLOW-NOT: {{.*}}: overflow: Counter overflow 15SHOW_NO_OVERFLOW: Total functions: 1 16SHOW_NO_OVERFLOW-NEXT: Maximum function count: 18446744073709551615 17SHOW_NO_OVERFLOW-NEXT: Maximum internal block count: 18446744073709551615 18