summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Reader/BitcodeReader.h
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2014-03-10 22:41:28 +0000
committerDiego Novillo <dnovillo@google.com>2014-03-10 22:41:28 +0000
commit87393cfd6b4e85e1b9baf804784e69dde30e019a (patch)
tree23b95c279d8d57da052fca5c68190bd96590f1a8 /lib/Bitcode/Reader/BitcodeReader.h
parente45534d027c685561d6da233e3cf5e0c1dde726c (diff)
downloadllvm-87393cfd6b4e85e1b9baf804784e69dde30e019a.tar.gz
llvm-87393cfd6b4e85e1b9baf804784e69dde30e019a.tar.bz2
llvm-87393cfd6b4e85e1b9baf804784e69dde30e019a.tar.xz
Use discriminator information in sample profiles.
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
Diffstat (limited to 'lib/Bitcode/Reader/BitcodeReader.h')
0 files changed, 0 insertions, 0 deletions