aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ProfileData/SampleProfTest.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-08-12Use the range variant of find_if instead of unpacking begin/endDavid Majnemer1-6/+4
No functionality change is intended. llvm-svn: 278443
2016-05-19Remove specializations of ProfileSummaryEaswaran Raman1-13/+10
This removes the subclasses of ProfileSummary, moves the members of the derived classes to the base class. Differential Revision: http://reviews.llvm.org/D20390 llvm-svn: 270143
2016-04-28Fix some Clang-tidy modernize and Include What You Use warnings.Eugene Zelenko1-4/+18
Differential revision: http://reviews.llvm.org/D19673 llvm-svn: 267910
2016-04-14Remove every uses of getGlobalContext() in LLVM (but the C API)Mehdi Amini1-3/+4
At the same time, fixes InstructionsTest::CastInst unittest: yes you can leave the IR in an invalid state and exit when you don't destroy the context (like the global one), no longer now. This is the first part of http://reviews.llvm.org/D19094 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 266379
2016-03-28Sample profile summary cleanupEaswaran Raman1-1/+1
Replace references to MaxHeadSamples with MaxFunctionCount Differential Revision: http://reviews.llvm.org/D18522 llvm-svn: 264686
2016-03-18Interface to get/set profile summary metadata to moduleEaswaran Raman1-0/+13
Differential Revision: http://reviews.llvm.org/D17894 llvm-svn: 263835
2016-03-03Fix memory leak in tests.Easwaran Raman1-0/+1
llvm-svn: 262674
2016-03-03Use LineLocation instead of CallsiteLocation to index callsite profile.Dehao Chen1-0/+2
Summary: With discriminator, LineLocation can uniquely identify a callsite without the need to specifying callee name. Remove Callee function name from the key, and put it in the value (FunctionSamples). Reviewers: davidxl, dnovillo Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D17827 llvm-svn: 262634
2016-03-01Metadata support for profile summary.Easwaran Raman1-24/+37
This adds support to convert ProfileSummary object to Metadata and create a ProfileSummary object from metadata. This would allow attaching profile summary information to Module allowing optimization passes to use it. llvm-svn: 262360
2016-02-19Add profile summary support for sample profile.Easwaran Raman1-0/+30
Differential Revision: http://reviews.llvm.org/D17178 llvm-svn: 261304
2015-12-16[PGO] Handle and report overflow during profile merge for all types of dataNathan Slingerland1-0/+30
Summary: Surface counter overflow when merging profile data. Merging still occurs on overflow but counts saturate to the maximum representable value. Overflow is reported to the user. Reviewers: davidxl, dnovillo, silvas Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D15547 llvm-svn: 255825
2015-12-10[ProfileData] Add unit test infrastructure for sample profile reader/writerNathan Slingerland1-0/+102
Summary: Adds support for in-memory round-trip of sample profile data along with basic round trip unit tests. This will also make it easier to include unit tests for future changes to sample profiling. Reviewers: davidxl, dnovillo, silvas Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D15211 llvm-svn: 255264