]> granicus.if.org Git - llvm/commit
Use base discriminator in sample pgo profile matching.
authorDehao Chen <dehao@google.com>
Thu, 23 Feb 2017 18:27:45 +0000 (18:27 +0000)
committerDehao Chen <dehao@google.com>
Thu, 23 Feb 2017 18:27:45 +0000 (18:27 +0000)
commitaa262b8b29da0a1e45723b6f89aa39560bf63a7a
treee9fb8e8be4794a7252c1fc5fd4094577f35941db
parentab761176c96563303773953e723847f4d58c52b2
Use base discriminator in sample pgo profile matching.

Summary: The discriminator has been encoded, and only the base discriminator should be used during profile matching.

Reviewers: dblaikie, davidxl

Reviewed By: dblaikie, davidxl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D30218

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295999 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/SampleProfile.cpp
test/Transforms/SampleProfile/calls.ll
test/Transforms/SampleProfile/cov-zero-samples.ll
test/Transforms/SampleProfile/discriminator.ll
test/Transforms/SampleProfile/inline-coverage.ll
test/Transforms/SampleProfile/inline.ll
test/Transforms/SampleProfile/propagate.ll