mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 06:06:19 +00:00
1c2b998913
Summary: This changes overflow handling during instrumentation profile merge. Rathar than throwing away records that would result in counter overflow, merged counts are instead clamped to the maximum representable value. A warning about counter overflow is still surfaced to the user as before. Reviewers: dnovillo, davidxl, silvas Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D14893 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254525 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
475 B
Plaintext
21 lines
475 B
Plaintext
# RUN: llvm-profdata merge %s -o %t.out 2>&1 | FileCheck %s --check-prefix=MERGE
|
|
# RUN: llvm-profdata show %t.out | FileCheck %s --check-prefix=SHOW
|
|
# MERGE: overflow.proftext: overflow: Counter overflow
|
|
# SHOW: Total functions: 1
|
|
# SHOW: Maximum function count: 18446744073709551615
|
|
# SHOW: Maximum internal block count: 18446744073709551615
|
|
|
|
overflow
|
|
1
|
|
3
|
|
18446744073709551615
|
|
9223372036854775808
|
|
18446744073709551615
|
|
|
|
overflow
|
|
1
|
|
3
|
|
9223372036854775808
|
|
9223372036854775808
|
|
0
|