mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 06:30:19 +00:00
87393cfd6b
Summary: When the sample profiles include discriminator information, use the discriminator values to distinguish instruction weights in different basic blocks. This modifies the BodySamples mapping to map <line, discriminator> pairs to weights. Instructions on the same line but different blocks, will use different discriminator values. This, in turn, means that the blocks may have different weights. Other changes in this patch: - Add tests for positive values of line offset, discriminator and samples. - Change data types from uint32_t to unsigned and int and do additional validation. Reviewers: chandlerc CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2857 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203508 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
221 B
Plaintext
11 lines
221 B
Plaintext
_Z3sumii:105580:5279
|
|
0: 5279
|
|
1: 5279
|
|
2: 5279
|
|
main:225715:0
|
|
2.1: 5553
|
|
3: 5391
|
|
# This indicates that at line 3 of this function, the 'then' branch
|
|
# of the conditional is taken (discriminator '1').
|
|
3.1: 5752 _Z3sumii:5860
|